I have a project with huge XML files that I'm copying and pasting into Emacs to edit. It's all on a single line, so I'd like to have a tool to make one XML element per line. Is there an Emacs function that I can use? I guess I'll even settle for a command-line tool that nicely integrates with Emacs, but that's not ideal.
...
I have a text file. Can Emacs select text based on regex and put it in kill-ring, so I can copy it somewhere else? Something like regex-kill-ring-save?
...
How would I go about setting all .rb files or all .py files to open in emacs if I double-click them; say, from the desktop?
I'm on OS X 10.6.2.
I have the script:
on open of finderObjects
repeat with currFile in finderObjects
set unixPath to POSIX path of currFile
set base to do shell script "dirname " & unixPath...
Yesterday I installed ECB on my Emacs, and I find method window and history window quite useful. But directory tree window and source window less useful, if I can hide them I will save more space for method window and history.
Another problem is that I use cscope to search through the project for definitions and callers, the result of ...
Has anyone figured out how to change the keybindings for the meta and control keys for Conkeror on Mac OSX? For example, in Emacs I have my C mapped to the apple command key and my M mapped to the option key. Is there any way to do this for Conkeror? Can anyone supply the javascript for the .conkerorrc file?
...
I edit my LaTeX files in Emacs using AUCTeX. To compile, I press C-c C-c, which will run pdflatex root, if root.tex is the file in the current buffer.
But what if I want it to run pdflatex on a file that is not in the current buffer?
For example, I am editing an included .tex file chapter2.tex and press C-c C-c. The command I want it ...
I would like to use latexmk to compile my LaTeX documents in Emacs. Especially I need the Emacs functionality next-error, which is typically called with C-x `, and jumps to the next LaTeX error in the document.
I would like to call latexmk either using C-x compile or the AUCTeX C-c C-c.
First, I set latexmk to use
$pdflatex = 'pdflat...
My version of Emacs is 23.0.91.1. Ubuntu did not catch up with 23.1, yet. Anyway,
I have an strace capture, and wanted to see file descriptors usage.
So, wanted to see "^(open|socket)" regexp on occur, but didn't work.
Grouping regexp does not work in Emacs regexp?
...
In vim, I can run set bg=dark and then vim will adjust all syntax highlighting to work on a terminal with a dark background (whether or not the background actually is dark, vim will assume that it is).
How do I tell emacs to assume that the background is either dark or light?
...
hi.
I would like to implement automatic collapse of compilation buffer to small size (but not close at a delete windows), such that upon successful compilation to window is shrunk to minimum size.
get-buffer-create returns a buffer. how can I shrink-window on window associated with that buffer? also, is there a way to store previous w...
hi.
How do I tell in emacs window orientation, e.g. if it was created by vertical or horizontal split? alternatively, how can I tell if window can be resized vertically or horizontally?
on a related note, is there a tutorial for programming emacs windows, e.g. size, buffers associated, properties, etc.?
Thank you very much.
was able ...
I want to add emacs autosave files to my .gitignore with the glob #*# but of course, lines starting with a hash are comment lines.
How can I get this into my .gitignore without it being treated as a comment?
...
hi
I am familiar with using info and man commands in emacs, however boost and default STL do not come with man or info pages, instead they come as HTML documentation. especially boost does not seem to have any documentation besides HTML (I could be wrong).
Right now I am trying to put together w3m for quick searching of boost and STL d...
I'm tired of writing comments that look like this
{
# bla bla blabla bla blabla bla blabla
# bla bla blabla bla blabla bla blabla bla blabla bla blabla bla bla
# blaaa bla
}
I have to manually wrap the lines and take care of the # as well. How do emacs pros make the editor work for them?
...
hello
How do I specify a function which has optional numeric prefix, if not, it prompts for a number? basically how goto-line behaves?
(defun my-function(&optional n)
; I have tried
(interactive "N") ; reads string, no prompt
(interactive "p") ; defaults to one
(interactive (if (not n) (read-number "N: "))) ; runtime error
...
How can I assign a keymap to a derived mode in emacs (I am using the define-derived-mode function). There is a derived-mode-set-keymap function but without examples or good documentation.
...
hi
I'm trying to setup ECB to work with C++ sources.
seemingly, semantic or ECB has problem determining whenever a function declarant with explicit namespace, namespace:: function , is really in the namespace. instead it parses it as struct member function.
Moreover, typedef is parsed as function prototypes.
What should I do to fix it...
I have started using anything.el in emacs, and I love it. One problem I have though is the inability to edit the results. When I press R in a dired to rename a file, I can easily select from the matches, but I see no way of editing a match.
...
I am stumped trying to create an Emacs regular-expression that excludes groups. [^] excludes individual characters in a set, but I want to exclude specific sequences of characters: something like [^(not|this)], so that strings containing "not" or "this" are not matched.
In principle, I could write ([^n][^o][^t]|[^...]), but is there ano...
I need to get selection as a string in my Emacs Lisp function.
...