|
|
|
@ -457,6 +457,14 @@ |
|
|
|
(beginning-of-line)))) |
|
|
|
(beginning-of-line)))) |
|
|
|
(global-set-key (kbd "C-a") 'smart-line-beginning) |
|
|
|
(global-set-key (kbd "C-a") 'smart-line-beginning) |
|
|
|
#+end_src |
|
|
|
#+end_src |
|
|
|
|
|
|
|
** Smart open-line |
|
|
|
|
|
|
|
#+begin_src emacs-lisp |
|
|
|
|
|
|
|
(defun open-line-and-indent () |
|
|
|
|
|
|
|
(interactive) |
|
|
|
|
|
|
|
(save-excursion (newline-and-indent))) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(global-set-key (kbd "C-o") #'open-line-and-indent) |
|
|
|
|
|
|
|
#+end_src |
|
|
|
** Whitespace |
|
|
|
** Whitespace |
|
|
|
Trailing whitespace is evil; get rid of it unless we are in special |
|
|
|
Trailing whitespace is evil; get rid of it unless we are in special |
|
|
|
modes, namely calendar (and later mu4e) |
|
|
|
modes, namely calendar (and later mu4e) |
|
|
|
|