I'd like to modify emacs' behaviour when using reftex, so that after pressing 'C-c [' and choosing a citation format the default regex that comes up is one that will give me the citation I used last (the normal behaviour is to default to the word before the cursor, which is rarely of any use). I often cite the same source many times in a...
I tried to reload the ~/.emacs file, and it seems that both of the command works fine. Then, what's the difference between the two? For loading .emacs, what command do I have to use?
...
I just installed Emacs Speaks Statistics, which is when this error started showing up. Uninstalling hasn't fixed it.
When I use C-x C-f, I can navigate normally, but when I actually press enter, Emacs seems to insert "/Application Data/Application Data/" after "~" in all paths, e.g. if I navigate to:
c:/Documents and Settings/admin/My ...
With emacs, it's pretty useful to edit HTML file. And I use 'Safari' (I'm a Mac user), to check if the HTML file is rendered correctly.
I always miss the AucTeX's forward/reverse link with pdf/tex files. I can shift-click on emacs/LaTeX file to corresponding pdf file, and vice versa. For example, when I shift-click on string 'abc' on te...
In noweb mode, I would like to make the doc chunks and code chunks easier to distinguish.
For example, a slightly different background color for the code chunks.
One possibility would be to define a new face for the minor mode of the code chunk, but then that face would also apply when editing a buffer in that mode.
Another possibilit...
I find myself wanting to use Emacs, mostly because of org-mode, but I'm having a lot of trouble getting used to the jerky scrolling behavior. I know this is a well-known problem/eccentricity of Emacs and that there are various ways to minimize jerkiness when scrolling. But nothing I've tried so far works very well at all.
The main sug...
Similar to emacs' M-x sort-lines
...
I'd like to put something like this in my .emacs:
(local-set-key (kbd "C-c a =")
(lambda () (interactive)
(align-regexp (region-beginning) (region-end) "=")))
But whenever I run it, I get an error "Wrong type argument: numberp, nil".
What does this error mean and how do I get the effect I'm looking for?
...
Hi,
How do I consistently control window focus after running emacsclient?
Currently, focus depends on if I already have an emacs server running. When emacsclient invokes an alternative editor, focus is shifted to the new emacs window. When emacsclient connects to an existing emacs server, focus is not shifted (ie. it stays on my putt...
Sometimes I construct a LaTeX document by breaking it up in sections and calling \input from the main file. When I do this, debugging becomes difficult because when I compile it with latex or pdflatex, it will give me the location of the error in terms of global line numbers rather than line numbers in the offending document. Is there a ...
I asked similar question about HTML, but I want to know if emacs XML mode has the feature.
Is there 'M-x browse-url-of-file' equivalent in XML mode? I mean, is there any key that can pop up xml editor (XMLEditor or similar)?
Is there any XML editing tool to enable the reverse link back to emacs XML mode?
ADDED
Based on slomojo's com...
I like to use python-mode.el and (gnu) emacs for editing my python files. If I use parentheses for multiline continuations, indentation works as I expect. For example,
foo_long_long_long_long = (
bar_long_long_long_long[
(x_long_long_long_long == X) &
(y_long_long_long_long == Y)])
is just the way I like it.
On ...
I've been using kmacro commands such as kmacro-name-last-macro to save keyboard macros. The problem is that after I have saved a macro and even added it to my .emacs file, I come across an error and want to edit the macro using kmacro-step-edit-macro. If my named macro is no longer in the macro ring (the default kmacro-ring-max is 8) I c...
Hi,
I don't know why but currently emacs opens only one copy of w3m. If w3m is already open then retyping the command to open w3m takes me to the already opened buffer. I would like to configure ansi-term similarly i.e. typing C-x C-a (command open ansi-term) should take me to already opened ansi-term instead of opening a new buffer a...
I am not getting indentation or colors when I open a cpp/h file with my emacs/xemacs installation on windows. Could you please advise what I need to do in my settings file to make this happen?
Thanks
...
I have gone through the Android guide for other IDEs, and I've got the basic build and install working fine using ant and a simple Emacs compile command. I'm aware of some of the existing tools for developing Java and XML in Emacs. I've also seen the EmacsWiki page recommending two Emacs packages, EmDroid and android-mode
I'd like to ...
I have been going through the emacs ebrowse info pages learning how to use it. I have hit a snag though. I am upto the "Member Buffers -> Switching Classes" page in which is states that I can swap classes using the "C c" key combination. Whenever I try to change to another class in the source tree it just spits out this error:
"ebrowse-...
Is there a way to define aliases so that shell-command can recognize them? shell recognizes those defined in .emacs.d/init_bash.sh; is it possible to make shell-command aware of these also?
...
A long time ago,when I wrote my .emacs setup[1], I used a shell script to compile and join the whole thing. The thing is now very old and "crusty", so I am now rewriting it to replace things such as:
(defmacro make-new-comment( mode face strcom color1 color2)
(list 'progn
`(make-face ',face)
`(if (not (assoc ,s...
Hello
GNU Emacs 23.1.1
I am maintaining someone else's code. The code is written in c using gcc 4.4.3 on linux platform.
However, the code jumps around a lot and its difficult to find out where all the function calls are called from.
In visual studio there is a feature called 'Call Hierarchy' which will display where functions are ...