diff options
Diffstat (limited to 'lisp')
| -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" |
