diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2016-06-30 12:32:45 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2016-06-30 12:32:45 +0200 |
| commit | a5551d165f3ba1b96e7e932037f0a804efdc0cba (patch) | |
| tree | 21313a88dad94ea179a36c32e2b31c965c2cfca4 /emacs/init.el | |
| parent | abffaca73bb619aff8b3df60810fb2529d1d3ba1 (diff) | |
| download | dotfiles-a5551d165f3ba1b96e7e932037f0a804efdc0cba.tar.gz dotfiles-a5551d165f3ba1b96e7e932037f0a804efdc0cba.zip | |
emacs: unset all f keys and added evil-numbers
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'emacs/init.el')
| -rw-r--r-- | emacs/init.el | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/emacs/init.el b/emacs/init.el index f59f0e1..0167ce0 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -148,6 +148,10 @@ ;; cannot be loaded due to some error. (global-unset-key (kbd "C-z")) +;; Disable all the Fn keys. +(dotimes (i 12) + (global-unset-key (kbd (format "<f%d>" (+ i 1))))) + ;; Let flyspell be performant. (defvar flyspell-issue-message-flag nil) @@ -287,7 +291,13 @@ (use-package evil-surround :ensure t :config - (global-evil-surround-mode 1))) + (global-evil-surround-mode 1)) + + (use-package evil-numbers + :ensure t + :config + (define-key evil-normal-state-map (kbd "C-a") 'evil-numbers/inc-at-pt) + (define-key evil-normal-state-map (kbd "C-c -") 'evil-numbers/dec-at-pt))) ;; Install a set of useful functions from @bbatsov. The bindings are following ;; Emacs style instead of being more Vim-like on purpose (I don't want to put |
