Browse Source

Fix C-a behavior (#991)

custom
Initial Zuo 10 years ago
committed by Bozhidar Batsov
parent
commit
2b85871805
  1. 1
      core/prelude-mode.el

1
core/prelude-mode.el

@ -43,6 +43,7 @@
(define-key map (kbd "C-c y") 'prelude-youtube) (define-key map (kbd "C-c y") 'prelude-youtube)
(define-key map (kbd "C-c U") 'prelude-duckduckgo) (define-key map (kbd "C-c U") 'prelude-duckduckgo)
;; mimic popular IDEs binding, note that it doesn't work in a terminal session ;; mimic popular IDEs binding, note that it doesn't work in a terminal session
(define-key map (kbd "C-a") 'crux-move-beginning-of-line)
(define-key map [(shift return)] 'crux-smart-open-line) (define-key map [(shift return)] 'crux-smart-open-line)
(define-key map (kbd "M-o") 'crux-smart-open-line) (define-key map (kbd "M-o") 'crux-smart-open-line)
(define-key map [(control shift return)] 'crux-smart-open-line-above) (define-key map [(control shift return)] 'crux-smart-open-line-above)

Loading…
Cancel
Save