0
votes
1answer
81 views

Add keybinding to js-mode/javascript-mode in Emacs

I have added web-beautify-* to Emacs 24, so that I can run M-x web-beautify-js to pretty format my javascript source code. I have add some keybindings for html-mode and css-mode, which work fine. ...
2
votes
1answer
59 views

Shortcut for inserting environments in `org-mode`

I'm using org-mode for organizing myself (very useful so far!). However, it is kind of annoying writting #+begin_comment ... #+end_comment each time I'd like to insert an environment. ...
0
votes
0answers
56 views

Use <Space> instead of <RET> in emacs ido mode

I would like to use the space key instead of Return to visit the current file or buffer guessed with ido mode in emacs. How can this be achieved?
2
votes
2answers
112 views

Swap the curly and the square braces in emacs

Currently in emacs I have to type SHIFT-[ and SHIFT-] to get { and } respectively. Typing [ and ] yields [ and ] respectively. I want to swap this behaviour in emacs, namely I want to have: [ and ] ...
0
votes
0answers
53 views

emacs global-set-key C-i

I want to remap a few commands in emacs as follows: (global-set-key "\C-i" 'backward-word) (global-set-key "\C-o" 'forward-word) This works well except the [TAB] key is somehow bound to C-i as well ...
0
votes
1answer
275 views

Space as a leader in emacs with evil

I am trying to define Space as a <leader> in Emacs using evil-leader. If I set , or \, then it works. but it does not work with Space for some reason. There are no errors. Mb something redefines ...
0
votes
0answers
141 views

changing the meta key in emacs

I am running emacs 24.3 through the terminal on OS X 10.8.4. I would like to modify the meta-key which is currently set to be the ESC key. I have successfully changed the meta-key from ESC to ...
1
vote
0answers
57 views

How do I get Emacs to interpret M-left as previous word?

I'm very used to having Emacs interpret M-left/M-right as backword/forwards word. However, last night, for some reason, Emacs started interpreting M-left as D and M-right as C. I'm wondering how I ...
1
vote
1answer
157 views

How to source key translations in emacs?

I'd like to use C-c B as a binding, only it seems to be already bound : C-c b (translated from C-c B) runs the command … How can I see where's the code that binds it ? How to overrule it myself ? ...
4
votes
1answer
250 views

Disable Ctrl-A shortcut in OSX / Firefox

OSX has Emacs keybindings on all text fields, that means Ctrl+A takes you to the start of line. In Firefox, sometimes, Ctrl+A activates the "Highlight All" option of the Find bar, instead of taking ...
0
votes
2answers
225 views

How to alias keybindings in emacs?

For instance, I get to use C-c a a a lot, and would like to easily map this to f1. I know I can search for what function the first binding finaly calls (this time it was org-agenda-list), but I'm ...
3
votes
0answers
111 views

Alt, Meta and other modifier keys

I want to get more combos in Emacs, so I tried to bind Alt, Super, Hyper via modmap to keys. I failed at it. So I tried to use xdotool. I started emacs -Q for clean experiment. Pressed C-hc and ...
2
votes
1answer
402 views

How do I “unbind” Ctrl+BackSpace in URxvt?

My URxvt is mapping the Ctrl+Backspace key combination to Ctrl+H. This is extremely annoying when using GNU Emacs. How do I change that behavior?
1
vote
1answer
137 views

How to replace a keymap in emacs?

I'm currently in the process of changing my emacs configuration quite extensively. I'm not comfortable with the default key-bindings for a lot of the major and minor modes and my configuration ...
1
vote
0answers
189 views

iterm2 emacsclient keybindings

I have just switched from using Emacs.app to emacsserver and emacsclient in terminal mode using iterm2 as my terminal emulator. I am having some trouble with some keybindings though. Particularly ...
2
votes
1answer
232 views

Emacs rebind C-i while keeping <tab> bindings

I'm using Aquamacs. It can distinguish between <tab>, the actual tab key, and TAB, which comes from typing C-i. I want to bind C-i to 'next-line permanently. This works for that: ...
4
votes
1answer
141 views

In Emacs, how to define a keyboard shortcut to quickly enclose highlighted text with <tag> and </tag>?

In Emacs, how to define a keyboard shortcut to quickly enclose highlighted text with <tag> and </tag>, optionally prompting for inputting the tag name tag?
1
vote
1answer
192 views

How can I get outlook to do emacs bindings?

I'm not even sure that this is possible. However, here goes. I am a follower of the true church of Emacs. My fingers know the key bindings, and they just do stuff. Normally this is great. The ...
3
votes
2answers
440 views

How to define a shortcut (key combination) to insert “<tag></tag>” in Emacs?

I want to define a shortcut to enter XML tag pairs. Pressing key combination key1-key2 which should prompt for entering a tag name, .e.g. "foo", and automatically insert "<foo></foo>". ...
6
votes
1answer
202 views

Is there a way of using ctrl-r after typing part of command in bash?

In bash the Ctrl+r command is very useful, I type Ctrl+r whatever and it searchs my history for commands containing the word whatever. But if I type whatever and realize that I would like search that ...
1
vote
1answer
337 views

How to efficiently type in a pair of XML tags in Emacs?

How to efficiently type in a pair of XML tags such as <tag></tag> in Emacs? I am hoping some sort of auto-complete behavior.
0
votes
3answers
179 views

How to indent a block of text rightward by 2 whitespace characters in Emacs?

How to indent a block of text rightward by 2 whitespace characters in Emacs? How to indent a block of text rightward by 4 whitespace characters in Emacs? [EDIT] I need a method that doesn't ...
4
votes
2answers
2k views

Is there an “LFD” key on my keyboard?

Emacs uses keybindings with "LFD", the Emacs FAQ provides the following information: LFD: Linefeed or Newline; same as `C-j' Is there a Linefeed button on my keyboard (other than C-j)?
8
votes
2answers
1k views

Setting major-mode specific keybindings in emacs

In my .emacs file, I want to add a key binding for a specific major mode (setting coffee-compile-file to C-c C-c in coffee-mode). I've found a lot of instructions on using local-set-key and ...