diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2019-01-27 20:39:32 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2019-01-27 20:39:32 +0100 |
| commit | 4b277d6b013b8abab6b4526b4e5f8f3cb3a5c468 (patch) | |
| tree | e13c35080a5d19d2b6be94950c0ff99c6d1c0f33 /emacs/init.org | |
| parent | 2be058b4c61ea73424820ffdc420bf6637dfeb9d (diff) | |
| download | dotfiles-4b277d6b013b8abab6b4526b4e5f8f3cb3a5c468.tar.gz dotfiles-4b277d6b013b8abab6b4526b4e5f8f3cb3a5c468.zip | |
emacs: added C-x i as a prefix for inferior modes
This includes `C-x i e` and `C-x i l` for ielm, and `C-x i r` for inf-ruby.
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'emacs/init.org')
| -rw-r--r-- | emacs/init.org | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/emacs/init.org b/emacs/init.org index 0a152b6..e9d0a9b 100644 --- a/emacs/init.org +++ b/emacs/init.org @@ -296,6 +296,13 @@ cannot be loaded due to some error. (global-unset-key (kbd "C-z")) #+END_SRC +Also disable the =C-x i= binding, since I've never used the default behavior, +and it will be used as a prefix for inferior modes (e.g. /ielm/). + +#+BEGIN_SRC elisp + (global-unset-key (kbd "C-x i")) +#+END_SRC + Disable all the Fn keys. #+BEGIN_SRC elisp @@ -1799,7 +1806,9 @@ Configure =ielm= with the proper ELisp utilities: (use-package ielm :config (add-hook 'ielm-mode-hook #'eldoc-mode) - (add-hook 'ielm-mode-hook #'rainbow-delimiters-mode)) + (add-hook 'ielm-mode-hook #'rainbow-delimiters-mode) + (global-set-key (kbd "C-x i e") 'ielm) + (global-set-key (kbd "C-x i l") 'ielm)) #+END_SRC ** C and C++ @@ -1861,7 +1870,8 @@ And give me an IRB instance: (use-package inf-ruby :ensure t :config - (add-hook 'ruby-mode-hook #'inf-ruby-minor-mode)) + (add-hook 'ruby-mode-hook #'inf-ruby-minor-mode) + (global-set-key (kbd "C-x i r") 'inf-ruby)) #+END_SRC ** Go |
