Most Popular

1500 questions
10
votes
2 answers

How to avoid typing "space" after "^" for moving up in directory in dired?

^ is the key binding for moving to the parent directory in dired ("Up directory"). However, in Gnu Emacs on Windows 7 Professional 64-bit with my German keyboard layout, it is not sufficient to type "^" but I have to type space afterwards to make…
MostlyHarmless
  • 1,395
  • 2
  • 13
  • 14
10
votes
1 answer

Can emacs close open LaTeX tags automatically?

When using web-mode, typing a , . Is it possible to get the same thing in LaTeX? For example, if I have a \begin{foo}…
terdon
  • 745
  • 6
  • 21
10
votes
1 answer

How are file paths mapped to subdirectories in .dir-locals.el?

I like the idea of .dir-locals.el. I have my own .dir-locals.el file in my home directory that should set all the variables for directories/files that I open unless there is .dir-locals.el closer to the directory I open the file in. However, even…
nert
  • 213
  • 1
  • 6
10
votes
4 answers

How to bind your keys to keymaps that aren't loaded yet?

I use use-package to manage installed packages and bind-key to assign actions to custom keys that I like. I override most of the default Emacs keybinding (e.g. C-n becomes M-k, C-p becomes M-i), but I'm OK with other modes overriding my keybinding…
Mirzhan Irkegulov
  • 1,088
  • 1
  • 9
  • 16
10
votes
2 answers

Remember modes for files without extensions

I've started editing a lot of files that have no extensions, but are still in a major mode format. I'm the only Emacs user on the team, and I don't want to make it a painfully obvious that my editor needs special stuff. I would like to avoid…
PythonNut
  • 10,243
  • 2
  • 29
  • 75
10
votes
3 answers

How to access os clipboard using Emacs + Evil

How can i yank to/from windows clipboard when using: Windows 7 (x64) GNU Emacs 24.4.1 (x64) Evil 1.0.9 and having (setq x-select-enable-clipboard nil) in my .emacs? (I put this line there because i didn't want vim changes (x, d, etc) to clobber my…
Kossak
  • 1,159
  • 1
  • 9
  • 18
10
votes
3 answers

global-auto-revert-mode doesn't seem to work?

My init file includes (setq global-auto-revert-mode t) and I can confirm it's true with C-h v. But I still have to manually revert all my files with revert-buffer whenever I change git branches. I even get as far as trying to save and getting the…
djechlin
  • 923
  • 8
  • 21
10
votes
2 answers

Easiest way to customize holidays that appear in org-agenda

This may have an obvious solution, which would explain why I cannot find it anywhere online, but I would like to customize the holidays that show up in my org-agenda--as easily as possible. Instead of manually entering each holiday in a diary or org…
kgo
  • 532
  • 3
  • 15
10
votes
1 answer

Is there a way to make tags work well with line wrapping in emacs org mode?

If the buffer is too narrow, if I make a tag for a heading, the amount of whitespace before the tag causes the tag to wrap past the end of the line onto a new line (I have visual-line-mode turned on). This makes it difficult to skim and read the…
avv
  • 1,563
  • 10
  • 24
10
votes
3 answers

Editing multiple source blocks in one buffer

I've got multiple source blocks which are all tangled to the same file. When I invoke C-c ' inside one block, only this specific block is shown in a new buffer. Is there a possibility to show all parts of this file inside this buffer (instead of…
beyeran
  • 221
  • 1
  • 3
10
votes
3 answers

Export Emacs installed packages?

I am using emacs 24.4. I have added a large number of installed packages via the M-x list-packages directive over about a year of usage. I would love to export my installed packages list for use elsewhere. Copying my .emacs gives me some errors on…
sanimalp
  • 236
  • 2
  • 7
10
votes
3 answers

Why aquamacs does not read ~/.emacs.d/init.el?

I have some customisation in my ~/.emacs.d/init.el. My command line emacs can pick up the init.el as expected. However Aquamacs does not seem to read the file at all. Here is the buffer of the *message* Loading prestart plugin files ... ...…
Anthony Kong
  • 485
  • 3
  • 17
10
votes
4 answers

How to debug startup problem, if `--debug-init' has no effect

When I launch Emacs24 (in an Ubuntu machine) I get an error message in the init procedure. Warning (initialization): An error occurred while loading `/home/nivaca/.emacs': But when I launch it with emacs --debug-init the debugger is not entered.…
NVaughan
  • 1,481
  • 12
  • 27
10
votes
1 answer

How can I add a new colon-command to Evil?

evil-mode introduces vim-style colon commands (such as :wq to save and close). I have a few commands (such as kill-buffer, org-babel-tangle) that I'd like to be able to run through this instead of the keybindings they currently have. How can I add…
J David Smith
  • 2,635
  • 1
  • 16
  • 27
10
votes
4 answers

Deep copy a string in Elisp?

I have a propertized string. I want to make a deep copy of it to add more properties, while preserving the properties in the original string. How can I do that (easily)? Example Evaluate one-by-one : (setq test-str-1 #(";; This `is' a test" …
abo-abo
  • 13,943
  • 1
  • 29
  • 43