If you had two snippets:
(global-set-key "\C-d" delete-char)
and
(define-key global-map "\C-d" delete-char)
Is there a difference between the two? If so, when would you use one over the other?
...
I want to have a similar tool in Emacs as the following in Vim
:g/search/
to get a list of matches.
How can you get a list of matches in Emacs?
...
I would like to use the dired mode of emacs as my file browser. I am very much addicted to see an icon for file/folder rather that to see the extension and color. The icons give me a very quick visual feedback. I have searched the web for display of icons in dired but found none. So I wonder whether it is even possible to do this and if ...
I'm going to be doing some PHP editing for my job this summer, and am looking for an effective Emacs setup for editing it. I'm already heavily invested in Emacs, so switching to another editor is not worthwhile.
Right now, I have nXhtml-mode, which provides a PHP mode with syntax highlighting (there are at least three different ones in ...
When using paredit in programming modes such as C, typing ( will insert a space before the paren when I'm trying to call a function, leaving me with:
foo ()
Is there a way to disable the insertion of the space without changing paredit's source?
...
I want to automatically format an XML schema definition file. All the normal pretty-print stuff: linebreaks after end-element, indentiing. I have seen this answer, and this elisp, which gives me the basics. Beyond what is there, though, I would like line-breaks between attributes within angle-brackets.
Like so. Before:
<s:schema el...
I saw this somewhere, but cannot find it now.
Is there a built-in function in emacs, or does someone have elisp, to line up all the equals signs in a series of inititialization statments in cc-mode?
Before:
int t=9;
Graphics g = new Graphics();
List<String> list = new List<String>();
After:
int t = 9;
Graphics g ...
I'm trying to set a key-binding to Ctrl+TAB in Emacs. I used the following call:
(global-set-key (read-kbd-macro "C-TAB") 'my-func)
However, whenever I use it, I get a
<C-tab> is undefined
error message. Trying to set the binding to "C-tab" results in an error message.
How can I set my binding to C-TAB?
...
I've enabled emacs keyboard mode in VS2005 and so far I'm in love.
The only issue I've run into is I can't find the hot key that triggers the IntelliSense menu. C-j no longer does the trick as it's mapped to something else.
So what is the emacs-mode IntelliSense trigger key?
Secondly, how would one go about finding out what it is?
...
I just learned, here, about nxml-mode, which, according to the README, is a
major mode for GNU Emacs for
editing XML documents. It supports
editing well-formed XML documents and
also provides schema-sensitive editing
of XML documents using RELAX NG
Compact Syntax.
Is there a mode that does the same for W3C XML Schema?
I...
I'm playing with Paul Graham's arc, and it's getting really annoying that the up arrow inserts ^[[A instead of the previous command, and ^R doesn't work as in shell. I vaguely remember there being a simple way to run Arc's REPL in a program which will remember the input history - does anyone know what it is?
...
I have some items in my .emacs that I don't want to run if I ran emacs -nw. How can I tell in elisp if that is the case?
(edited to change -nox to -nw --- where was my brain?)
...
In my .emacs file, I have a c-common-mode-hook that sets c-basic-offset to 4, but whenever I create a java file this is reset to 2. How do I set indentation to four spaces in JDE mode?
...
Copying text from websites via browser, paste into xemacs (21.4) buffer, and tildes, quotes, etc. don't copy correctly.
Example: he’s a dummy -> he\222s a dummy.
Can YOU copy & paste it without problems? If so, please help - how to config my .emacs to solve this. Thanks.
...
I am trying to configure git.el. When i do git-status i can see the status buffer with changed i can also add files using 'a' but when i try to commit a file using c
writing the commit log and finishing it with C-c C-c gives me
env: git: No such file or directory
error and file is not committed. I am using emacs 23 on OS X. The only ...
Registers are a feature of emacs that I make a lot of use of. For those not familiar, you highlight some text, and then ask emacs to place it in a numbered register (0-9). Then as you're going along you can ask emacs to insert the text in the given register into your code.
Basically I can save a chunk of text on the fly and then insert...
Hello all,
I have one binary and one shared library.
The shared library is compiled with:
all:
g++ -g -shared -fpic $(SOURCES) -o libmisc.so
the binary is compiled with:
LIBS=-L../../misc/src
LDFLAGS=-lmisc
all:
g++ -g -o mainx $(INCLUDE) $(SOURCE) $(LIBS) $(LDFLAGS)
I set in ~/.bashrc
export LD_LIBRARY_PATH=/mnt/sda5/Programming/m...
My Emacs is set to display text as black background on green text. The problem is when i do a diff using git.el the part at the top of the buffer showing changes starting with --- or +++ is showed using greenish color on green so i can't read i check git.el but can not seem to figure out which face is used to control this ?
...
Today I was bumming around in /usr/share/emacs/23.0.91/etc/ and I found the HELLO file. That directory is full of such gems, but I was wondering if there are other, more obscure, easter eggs in emacs that you all might know about. From a terminal window run emacs like so:
emacs --no-splash -f view-hello-file
This starts emacs and open...
How do I find a tab character in emacs?
...