diff options
| author | Ravi R Kiran <aine.marina@gmail.com> | 2016-06-24 03:18:40 (GMT) |
|---|---|---|
| committer | Ravi R Kiran <aine.marina@gmail.com> | 2016-06-24 03:18:40 (GMT) |
| commit | 862853b6ee6d1495251d2dddcf4a14cc19e99976 (patch) | |
| tree | fe8570c4043315665f5eba46fb8c50658ec92b73 | |
| parent | 21bbae4fd434b8781f29e261684737804c864b32 (diff) | |
| download | dotemacs-862853b6ee6d1495251d2dddcf4a14cc19e99976.zip dotemacs-862853b6ee6d1495251d2dddcf4a14cc19e99976.tar.gz dotemacs-862853b6ee6d1495251d2dddcf4a14cc19e99976.tar.bz2 | |
Let's try out key-combo
| -rw-r--r-- | lisp/ravi-init-navigation.el | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lisp/ravi-init-navigation.el b/lisp/ravi-init-navigation.el index 569e164..2979983 100644 --- a/lisp/ravi-init-navigation.el +++ b/lisp/ravi-init-navigation.el @@ -200,10 +200,14 @@ ;; C-: duplicates line, C-u C-: comments first line (bind-key "C-:" 'ravi/kyle-sherman-duplicate-line) -(defun ravi/back-to-indentation-or-beginning () (interactive) - (if (bolp) (back-to-indentation) - (beginning-of-line))) -(bind-key "C-a" 'ravi/back-to-indentation-or-beginning) +(use-package key-combo + :config + (progn + (global-key-combo-mode 1) + (key-combo-define-global (kbd "C-a") + `(back-to-indentation move-beginning-of-line + key-combo-return))) + :ensure t) (defun ravi/Fuco-point-in-comment () "Determine if the point is inside a comment" |
