I know about M-x dire, but would like to customize it. I would like to hit one key (for example F2) and get dire buffer open. When I navigate across the directory hierarchy it shouldn't open new buffers.
And when I finally open the file it also shouldn't open new buffer for it (not strictly necessary, but strongly preferred).
Of course...
In Vim emulation mode (viper + vimpulse) << and >> are working similarly to Vim's. I would just like them to indent with 2 spaces. How do I do that? (I know, trivial. But useful)
...
Emacs has Paredit which actively prevents you from typing unbalanced parentheses (short of C-Q ( to force-insert a literal one, or other craziness). Inserting an open paren also inserts a closing one. Backspacing over a paren either deletes both the opening and closing paren, or neither. There are shortcuts to wrap a bare word in new ...
Hi,
I have a small problem with the way the commands "backward-word" and "backward-kill-word" work. When I hit "backward-kill-word" on a line that is only white-spaces (for example, the first char of an indented line), the command will kill all the white-space, as well as the last word of the previous line.
This behavior is completely ...
I've been using Emacs for a couple months now, and I want to get started in elisp programming. Specifically, I'd like to write my own interactive function. However, I'm more than a bit lost. (interactive ...) has tons of options and I'm not sure which one I want. Then, I don't really know the names of the functions I need. If someone cou...
Although several thousand Emacs Lisp libraries exist GNU Emacs does not have an (internal) package manager.
I guess that most users would agree that it is currently rather inconvenient to find, install and especially keep up-to-date Emacs Lisp libraries.
Pages that make life a bit easier
While we wait for a good package manager.
Ema...
Notepad++ automatically adds a shell shortcut so that when you're in Windows Explorer, you can right-click on a file and select "edit with Notepad++". How can I do the same with emacs? I am using GNU Emacs 22.3 for Windows.
...
I use shell-command a lots (default binded to M-!), but often I'm doing stuff to the buffer I'm currently editing. Instead of typing the buffer name (and no filename completion is available in shell-command, alas!), it'd be nice to have a shortcut key, say f3, to insert that name for me whenever I press the key.
The problem is I don't w...
I have a program that takes input from
stdin and also takes some parameters
from command line. It looks like this:
cat input.txt > myprogram -path
"/home/user/work"
I try to debug the code with gdb
inside emacs, by M-x gdb, I try to
load the program with the command:
gdb cat input.txt > myprogram -path
"/hom...
I'm using the bsd style of indentation in emacs & I'd like to modify it a bit. The related portion of my .emacs file is below. When I write a function with try catch blocks the braces are indented. I'd like them to not indent similar to a function.
What's it's doing now.
try
{
}
catch
{
}
What I'd like it to do....
Is it possible to use ido-mode completion to find definitions in a TAGS file? I suspect that ido-completing-read is part of the answer. Here's my non-working code, which shows an unpopulated ido-mode minibuffer:
(defun ido-choose-from-tags ()
"Use ido to select tags "
(interactive)
(etags-tags-apropos
(ido-completing-read...
For example when editing various data files, the backup data is no use and actually trips up our tools. So I'd like to be able to disable backup for files containing a regexp in the name.
justinhj
...
I'm reading a bunch of MySQL files that use # (to end-of-line) comments, but my sql-mode doesn't support them. I found the syntax-table part of sql.el that defines /**/ and -- comments, but according to this, Emacs syntax tables support only 2 comment styles.
Is there a way to add support for # comments in sql.el easily?
...
Steve Yegge wrote a comment on his blog:
All of the greatest engineers in the
world use Emacs. The world-changer
types. Not the great gal in the cube
next to you. Not Fred, the amazing guy
down the hall. I'm talking about the
greatest software developers of our
profession, the ones who changed the
face of the industry. ...
How do you disable soft returns in emacs?
...
I was working with a Lisp dialect but also learning some Haskell as well. They share some similarities but the main difference in Common Lisp seems to be that you don't have to define a type for each function, argument, etc. whereas in Haskell you do. Also, Haskell is mostly a compiled language. Run the compiler to generate the execu...
The defaults for M-x lgrep is to use -e for the pattern. I'd like to use -E, but it looks like -e is hard-coded into grep.el. Tell me I'm wrong! Any hints? (I'm using version 22.1 - is the grass any greener in 23?)
...
When using emacs mode in Visual Studio 2008 the tab key no longer inserts tabs. It simply formats the current line. It is possible to remap tab to Edit.IncreaseIndent but this has many undesirable side effects. Has anyone else experienced this? If so is there a fix/hack?
Also I have noticed that the performance of the text editor rapidl...
Is there a way to highlight a string in a text (but not ALL such strings) in a buffer where font-lock-mode is on.
Let's imagine I have a buffer with SQL mode and I want to highlight a string in it.
The following code does not work
(set-text-properties 10 20 '(face hi-yellow))
When I call
(font-lock-mode -1)
it works, but all sq...
I have written a small function in Emacs that does a
git stash
git stash apply
in the Git repository of the file I visit, and I have added this function
in after-save-hook so it runs every time I save the file. The problem is
that when I save the file, the git commands above run and change the timestamp,
so Emacs thinks that the file...