Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
6

C-x C-c is for Kill Emacs (save-buffers-kill-terminal). Maybe on other systems you are using emacsclient, then C-x C-c behaves specially if you are using Emacs as a server. If you type it from a client frame, it closes the client connection. Or maybe you run multiple instances of Emacs? To close only one frame use C-x 5 0 or s-w. This command delete ...


2

I have the command fill-paragraph mapped to key <escape> q, it is mapped by default in emacs. In fact, it's mapped to ESC q by default, which is slightly different. ESC is the ascii escape character, while <escape> is the keyboard key at top left of your keyboard (but if you're using Emacs from a text terminal, the terminal probably sends ESC, ...


2

Maybe something like this: (defun change-dict-and-ispell () (interactive) (ispell-change-dictionary "en_GB") (ispell-message)) (global-set-key (kbd "C-c s e") 'change-dict-and-ispell)


1

This is impossible with Evil's current design. Here's roughly what happens for a normal Emacs command: Emacs waits for a complete keybinding You press a key Emacs looks it up in the currently active keymaps It finds a match for a prefix It waits for another key in that prefix map It looks it up again This repeats until a full keybinding has been read Emacs ...


1

Local key bindings override global ones. Minor-mode key bindings override local (major mode) key bindings. So do one of these things: Define those keys in the maps of those modes so they invoke the commands you want, other-window and open-line. Define your own minor mode, and define those keys in your minor mode map. And turn on your minor mode and always ...


1

You should/cannot use the interactive commands isearch-forward-symbol-at-point and query-replace-regexp in that way to define a new function. For an instance isearch-forward-symbol-at-point does not return the symbol at point and query-replace-regexp requires a TO argument if called non-interactively. I think the following Elisp function comes very close ...


1

This is the key binding that does what you want, out of the box: M-s . C-M-%. The M-s . part starts searching with isearch-forward-symbol-at-point. The C-M-% part starts query-replace-regexp, the current search string as the old text, to search for and replace. (C-M-$ is undefined in isearch-mode-map (and the global map).)


1

flyspell-mode only optionally binds flyspell-auto-correct-word to <M-tab> and to C-.. That has been so for a very long time (at least Emacs 23). Switch the binding for <M-tab> off by the customizing the option flyspell-use-meta-tab to off. One way to do so is by clicking the menu item Options->Customize Emacs->Specific Option and typing ...


Only top voted, non community-wiki answers of a minimum length are eligible