Stack Exchange Network

Stack Exchange network consists of 174 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

Questions tagged [key-bindings]

Keyboard shortcuts, key chords, key sequences, hotkeys, or any association between key combinations and corresponding actions in Emacs.

0
votes
1answer
31 views

how to map <C-M-left>, <C-M-right> etc to the correct hex codes in iterm2

I'm looking to configure iterm2 to output the correct hexcodes that correspond to in emacs. There's a whole bunch of mappings predefined but it's very cryptic. I'm a little bit lost as to how these ...
0
votes
1answer
42 views

how can a command be bound to Ctrl-' or Ctrl-<NUM> in the terminal

I want to bind a command to C-', C-` and C-0 through C-9 keys. It's not working in the terminal Is there a way to do so?
11
votes
1answer
771 views

what is the `A-` binding?

On Emacs, if I type C-h, b a list of keybinds come up, including: what is A- and how do I access it?
1
vote
2answers
154 views

use-package :bind not working as expected

I frequently work with R and ess, and want to bind a shortcut to a function that clears the R console: (use-package ess-site :ensure ess :bind (:map inferior-ess-mode-map ("C-c c" . ...
1
vote
1answer
71 views

Setting C-p as helm-projectile-find-file

I put this at the very end of my config file: (global-set-key (kbd "C-p") 'helm-projectile-find-file) On Emacs start I can see that it is getting assigned using C-h k C-p. Then when I actually load ...
1
vote
1answer
39 views

What mode does the command `query-replace' activate?

I'm editing my keybinds mode-by-mode, and I've now come to the query-replace-map. I want to define my keybinds in a mode-hook to keep my files logically consistent, but I cannot determine which mode ...
1
vote
2answers
88 views

How to make all variables and functions of a mode visible without activating the mode

Let's say I want to customize a keybind for a mode that hasn't been loaded yet like so: (define-key eshell-mode-map (kbd "C-M-i") 'eshell-previous-input) But the problem is if I haven't yet loaded ...
2
votes
1answer
35 views

Using Emacs with Greek keyboard

I know I can use a Greek input method, but what I want is quite different: how to use Emacs in an OS configured for Greek, without having to set the keyboard to English (or any other Latin alphabet ...
1
vote
1answer
40 views

Changing the name of the function key <mouse-1> leads to problems

I want to change the name of the function key <mouse-1> like so: (define-key input-decode-map (kbd "<mouse-1>") (kbd "<jd:m1>")) And thus bind the new name to an arbitrary function ...
1
vote
1answer
201 views

How is the key <backtab> defined; how to obliterate it; and how to create a new one from scratch?

Logos Basically what I've been doing the past couple of weeks is trying to customize my keybinds one mode at a time; thus I've been going through each mode one-by-one and completely clearing its ...
1
vote
0answers
17 views

Unbind SLIME's slime-edit-uses (M-_)

I installed undo-tree-mode into my emacs. It does have a lot of nifty features, one of them being undo-tree-redo (bound to M-_). It so useful that I put the following code inside my ~/.emacs.d/init.el:...
1
vote
1answer
11 views

How to sustain shift-selection with my custom scroll function

I have made two custom scroll functions (that scroll up and down a page respectively) (defun jd:scroll-up () (interactive) (scroll-down-command) (move-to-window-line nil)) (defun jd:scroll-...
1
vote
1answer
47 views

Quake Terminal Like Access for Emacs Client Session [duplicate]

I am trying to get used to Emacs. I have a problem with the startup time of the Emacs and I give up Emacs easily when the startup times for "vim", "subl" (sublime text), and "code" (vs code) are much ...
4
votes
1answer
49 views

How to suppress a minor mode's key binding in only certain major modes?

Suppose that I use minor mode MIN with a whole bunch of major modes. In one of those major modes, call it MAJ1, MIN's binding for a specific key K is undesirable; I would therefore like to suppress ...
1
vote
1answer
59 views

How do I get rid of RET being translated from <return>?

I'm overhauling all of my keybinds and I'm trying to keep it logically consistent. When I issue the command describe-key -> RET This pops up in the *Help* buffer: RET (translated from <return>...
1
vote
2answers
84 views

Spacemacs: change prefix key from `SPC-b` to `SPC-v`

I use buffer (SPC-b) prefix key very often, and would like to move its keymap to a more convenient key (e.g. SPC-v). Is there a way to achieve this without redefining the entire map? so I would like ...
0
votes
1answer
22 views

Toggle major mode with a custom key binding

I currently have 2 key bindings for switching between two major modes: (global-set-key (kbd "<f12>") 'js2-jsx-mode) (global-set-key (kbd "<f13>") 'web-mode) How would I reduce that to a ...
2
votes
1answer
50 views

Assign TAB in markdown mode

Running emacs 25.2.2, general, evil and markdown-mode installed from MELPA. The problem is when I hit TAB on a heading in a markdown file, it does not cycle visibility of content. C-h k TAB shows it ...
0
votes
1answer
90 views

Emacs on mac recognizing C-x as M-x

System Config: macOS Sierra, Emacs v26.1 installed from emacsformacosx.com issue: On a fresh install, the C-x key is mapped to M-x by default. Is this the default behaviour? If so, how can I ...
0
votes
0answers
53 views

Define keybindings for org-agenda starting with SPC

Using emacs 25.2.2, general, evil and evil-collection from MELPA. I have the following in my init.el: (general-unbind 'org-agenda-mode-map "SPC") (general-create-definer my-leader :prefix "SPC")...
0
votes
1answer
58 views

How can I get working motion keys with `emacs -nw`?

when I start Emacs without windowing system (-nw), the motion keys are not working. Instead, I get (parts of) the escape sequences, like: ;; This buffer is for text that is not saved, and for Lisp ...
0
votes
1answer
44 views

C-x and M-x remapped to SPC and SPC-SPC

What would be the best way to configure Emacs to handle the above keybindings for vanilla Emacs? Specifically, I'd like to have SPC work as C-x and SPC SPC work as M-x. I love Spacemacs for the ...
1
vote
1answer
43 views

Keybinding to go to an agenda custom view

Running emacs 25.2.2 and org 9.1.13. I have defined several custom views. I can visit them using C-c a followed by the assigned letter. I was wondering if I could cut the dispatcher all together. I ...
0
votes
2answers
84 views

Show Link Tooltip mouse over with keystroke

When I use mouse-over on an Link (thanks to Tobias) it shows an Image and text. When I used display-local-help the image disappeared (perhaps due to lack of space in the message area). I want to ...
0
votes
1answer
36 views

Keybinding for adding a new heading under a list item in org-mode [closed]

Lets say you are working in an org-mode structure like this: * First level heading… ** Second level heading *** Third level heading - list item one - list item two After list item two you want to ...
0
votes
1answer
36 views

Capturing data on .org document to table

I have a simple template in emacs .org mode . \begin{flushright} Name : Phone no: Billed amount: Date \end {flushright} • Details ......... I export the document to pdf and print it. I ...
-2
votes
1answer
45 views

Binding C-c C-e lo to “print” button

I use org mode for my routine work. I use sequence C-c C-e lo to export and open pdf almost 30 times a day Is it possible to bind this sequence to print button. It will make my job easy
0
votes
1answer
33 views

How to call export function, bypassing interactive menu

The shortcut C-c C-e is linked to org-export-dispatch. Whenever I want to export my current org buffer as html, I do C-c C-e R R, which is Export to reveal.js HTML Presentation -> To File. I am ...
0
votes
1answer
47 views

C-x-TAB not followed by options

I am after the key-binding C-x-TAB S-rightarrow to indent each line in a block by a TAB see - https://www.gnu.org/software/emacs/manual/html_node/emacs/Indentation-Commands.html. I always open emacs ...
0
votes
1answer
136 views

How to type S-<LEFT> during indent-rigidly?

How to type S-LEFT during the transient mode after C-x <TAB> (indent-rigidly)? Particularly, I am after this command C-x <TAB> This command is used to change the indentation of ...
0
votes
1answer
95 views

How to type `C-M-\` [closed]

How to type C-M? Particularly, I am after this command - from https://www.gnu.org/software/emacs/manual/html_node/emacs/Indentation-Commands.html First attempt Select the text Use the combination ...
0
votes
0answers
48 views

Using Emacs as a daemon (emacsclient) exhibiting weird behavior

Whenever I use Emacs as a daemon it seems like my init file isn't being fully loaded. My keybindings in particular are acting very odd. I use some unorthodox keybinds; for example: Ctrl+u = ...
3
votes
1answer
188 views

spacemacs key bindings in plain vanilla evil emacs

As the title suggests, I would like to use spacemacs like keybindings in plain vanilla evil emacs. The spacemacs key bindings are very intuitive. But the package is too heavy for my low-end laptop. ...
0
votes
1answer
32 views

orgDefine a keyboard binding that works only in org-agenda when under evil

Using emacs 25.2.2 on Kubuntu 18.04 with evil and evil-org. Here is a very basic question that I could not get a clear answer for, despite googling. I want to define a keyboard binding that works ...
0
votes
1answer
103 views

Make C-S-up handle shift selection under Org-Mode

When shift-select-mode is on (Emacs' default), C-S-up in text mode selects the previous paragraph. This does not work under Org-Mode, where C-S-up gets translated into C-up, which is mapped to org-...
0
votes
1answer
49 views

vhdl-mode key binding not working

I want to use the vhdl-mode in Emacs. I can use the templates when working with the meta key like: M-x vhdl-template-process If i want to use the corresponding key binding like: C-c C-t P it won't ...
3
votes
1answer
74 views

Trying to make control-f search exactly like control-s does!

I am trying to configure Emacs to not only use CUA, but also for control-f to search exactly like control-s does in the standard configuration. What I have achieved is that I can key in control-f and ...
7
votes
3answers
115 views

Near-identical commands on multiple keys

Visual Studio has this nice feature where you can put the point on something, press C-f3 and it'll both find the next instance of the thing under the point and it'll remember it. You can then press ...
0
votes
0answers
50 views

emacs / orgmode doesn't read my config file

I try to start using org mode in emacs, but I'm encountering errors in ~/.emacs file on my openSUSE 15 Leap system. I added lines to config file from THIS LINK: (global-set-key "\C-cl" 'org-store-...
1
vote
2answers
104 views

How can I rebind C-n from evil-paste-pop

I am trying to bind C-n and C-p to call next-buffer and previous-buffer. They seem to conflict with some evil-mode key bindings and I don't seem to be able to overwrite them. When I press them I get ...
14
votes
2answers
924 views

Convention about using C-x or C-c as prefix keys

What are the conventions for using C-x, C-c, or M- as prefix keys? For example: is C-x, etc., for saving or visiting buffers? Is C-c, etc., for text editing? Background Maybe this is a silly ...
1
vote
2answers
39 views

How to disable a keybind to allow shift selection with custom cursor keybind [closed]

I have back-to-indentation bound to M-u. When I hold Shift with M-u I'm unable to select the text because M-U (note the capital 'U') is bound to upcase-word So I disabled that bind by putting: (...
0
votes
1answer
64 views

What keys can I use to create/delete and select side windows?

I have a shell buffer that's a good candidate for a side window: I also regularly use an org buffer, that's always good to have around. https://www.gnu.org/software/emacs/draft/manual/html_node/elisp/...
0
votes
1answer
24 views

Trying to make keybinding in spacemacs

I'm trying to bind ",," to eval the topmost S-expression containing the cursor in common lisp layer, from this page I assumed it would be done like so: (spacemacs/set-leader-keys-for-major-mode '...
2
votes
1answer
29 views

Emacs execute keymap entry

Emacs defines a fair variety of objects that can be bound to keys, with e.g. global-set-key. (The canonical list can be found here). I would like to simulate the invocation of a keymap entry. For ...
0
votes
0answers
28 views

“No such file or directory, bind-key” after installing use-package [duplicate]

I'm using Emacs on Windows 10. I want to override key bindings, so after reading How to override major mode bindings, I installed use-package with the built-in package manager (via M-x package-install ...
0
votes
0answers
56 views

How can I rebind my keys in Spacemacs to allow moving between windows (splits) with C+hnei?

I'm trying to rebind my keys for navigating between split windows. Here's what I've tried (putting this in (defun dotspacemacs/user-config): (global-unset-key (kbd "C-h")) (global-unset-key (kbd "...
1
vote
1answer
88 views

Invalid modifier in string for command unset “\C-;”

The command (global-unset-key "\C-;") fails with the message: Invalid modifier in string. Perhaps because of the special character ;. What is the proper way to unset this key? Any other normal ...
2
votes
1answer
40 views

Run command on region AucTeX

I would like to run force-compile (see Run TeX-command-run-all when there are no changes in .tex-file) on a region of my LaTeX document. (defun force-compile () "Set the file modification times on ...
1
vote
1answer
117 views

Spacemacs evil-window key bindings not working?

I have these keybindings in my dotspacemacs/user-config function: ;; Modify evil-mode keybindings from hjkl motion to jkl; ;; Motion mappings (define-key evil-motion-state-map "H" 'evil-window-bottom)...