aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2016-06-30 12:32:45 +0200
committerMiquel Sabaté Solà <msabate@suse.com>2016-06-30 12:32:45 +0200
commita5551d165f3ba1b96e7e932037f0a804efdc0cba (patch)
tree21313a88dad94ea179a36c32e2b31c965c2cfca4
parentabffaca73bb619aff8b3df60810fb2529d1d3ba1 (diff)
downloaddotfiles-a5551d165f3ba1b96e7e932037f0a804efdc0cba.tar.gz
dotfiles-a5551d165f3ba1b96e7e932037f0a804efdc0cba.zip
emacs: unset all f keys and added evil-numbers
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
-rw-r--r--emacs/init.el12
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