I am having problems with the greps in Emacs.
a) grep doesnt seem to understand the .[ch] for searching .c and .h files. This is a default option provided by Emacs with the lgrep command. The example is searching for the word "global" in .c/.h files.
grep -i -nH "global" *.[ch]
grep: *.[ch]: No such file or directory
Grep exited abn...
Most emacs modes include some sort of prefix to activate their features. For example, when using GUD "next" is "C-c C-n". Of these modes, many provide special buffers where one can use a single key to activate some functionality (just 'n' or 'p' to read next/previous mail in GNUS for example).
Not all modes provide such a buffer, howeve...
EDIT: I understand there is keyboard-quit (which is normally bounded to C-g); but I'm more interested to know about how one deals with editing functions that come with Emacs (like in this case). I run into this kind of situations from time to time when I want to change just a little bit of some build-in functions.
In emacs, when you hit...
In python-mode (for emacs), hitting Control-C\Control-C will execute the current buffer. However, when execution is finished, the output buffer springs up and splits my editing window in half. This is a complete pain, especially given that there's generally no output in the buffer anyway!
Is there a way to stop the buffer from appeari...
Let's say you have a *SQL* buffer already open in Emacs that is connected to a specific server and database. Now, your intention is to connect to a different server and database while keeping your other SQL buffer process active.
How exactly can you create a new *SQL* buffer process without killing your original SQL buffer? Can this b...
I have been using Emacs for more than three years now but it still takes me days to write even small functions in Lisp. I've looked through GNU Emacs Lisp Reference Manual but it's huge and structured completely opposite from JavaDoc, not from functions to descriptions but the other way around.
What will make my life much easier is some...
I'm trying to write simple Emacs function to convert ids between C style ones and camelCase ones (i.e. c_style <-> cStyle). But for some reason, Emacs built in downcase function leaves the word intact. M-x downcase-word works fine so I completely lost. Any ideas are welcome.
(defun toggle-id-style ()
"Toggle between C-style ids and ca...
I customize Emacs a lot. Recently, I added something to my .emacs configuration that sporadically pegs my CPU at 100%, but I really don't know what it is.
If I press C-g a bunch of times, eventually I'll get a message below the minibuffer asking me if I want to auto save my files and then if I want to abort emacs entirely. If I keep sa...
Hi Guys,
I'm pretty old school sometimes and I like working with Emacs in my terminal. (I work with IDEs all the time. But sometimes, when in the privacy of my own home, I just like a text editor a terminal and a beer)
However, the default Emacs that comes with OS X does not seem to highlight the comments in font-lock-mode. I've seen ...
I'd be happy to have very soft character ">>" instead of white-space, like this:
Any idea how to achieve that in Emacs?
thanks
...
I'm running Emacs 23.0.60.1, downloaded from here, on Windows XP, with a network printer configured as the default printer.
How do I setup Emacs to easily print buffer contents?
The documentation of the patched Emacs version for Win32 mentions "quick and easy" printing, but the "Quick Print" menu entry does not appear and the regular e...
I would like to have automatic folds for comments in my AquaEmacs.
...
I use AquaEmacs.
I would like to have Emacs which has a vertical hierarchy (at the left-hand-side) about items in the document, similar to Vim's plugin Taglist.
...
I would like to have a figures right in my MacVim, similarly as in xEmacs' AucTex.
...
I have problems setting up geben-on-emacs on Windows.
I have:
GNU Emacs 23.0.60.1
geben 0.22
xampp 1.7.0
Xdebug 2.0.4
Native Debugclient is working fine: debug session gets established and I can issue various debug commands.
This is what happens when I try to debug with geben:
Issue M-x geben. Get Waiting for debug server to conne...
I implemented a small function, which parses an SQL INSERT statement and highlights a column value when a cursor is on a column name and vice versa.
Then I wanted to add a possibility to quickly jump between column name and column value. I used push-mark in my implementation, so I can jump with C-x C-x (exchange-point-and-mark). It wor...
I am using xemacs for editing. xemacs shows buffer tabs on the top of the editing window. However, my buffer tabs have this strange behavior.
When I switch to cpp file, the buffer tabs show only cpp buffers open. When I shift to a h file (using C-x b), only h files are shown.
How can I make xemacs show all open buffers in buffer tabs a...
Hi,
I would like to write a function which takes action if a give buffer name already exists. For example:
(if (buffer-exists "my-buffer-name")
; do something
)
Does elisp have a function that will check the for the existence of a buffer similar to how my made up "buffer-exists" function does?
Thanks
...
I'm using emacs with cvs and have cvs mode enabled. I'd like to get line-by-line highlighting of changes from the latest version in CVS. I've seen this done in intellij where there is a green indication for lines added and another indication for lines modified and a third symbol for lines deleted.
Is there a cvs highlighting mode fo...
I've recently started using ido-mode, which, overall, is pretty nice. But one thing seems especially broken, and I'm wondering if there's a setting (ha) buried in there to fix it.
ido-switch-buffer doesn't seem to care about buried buffers. That is, if I use bury-buffer, and then ido-switch-buffer, the first choice is often the one I ...