[Emacs Lisp] Personal ~/.emacs.d/ configuration folder.
General buffer cleanup.
smart-documents.org
@@ -589,10 +589,17 @@
589
589
Indent buffer in every mode.
590
590
591
591
#+BEGIN_SRC emacs-lisp :tangle yes
592
Removed:
(global-set-key [f12] 'sd-indent-buffer)
592
Added:
(global-set-key [f12]
593
Added:
'(lambda ()
594
Added:
"Clean up buffer in the most general sense.
595
Added:
This means indenting the buffer according to the major mode in force,
596
Added:
as well as deleting trailing whitespaces."
597
Added:
(interactive)
598
Added:
(sd-indent-buffer)
599
Added:
(delete-trailing-whitespace)))
593
600
#+END_SRC
594
601
595
Removed:
*** Beautify Org mode buffer
602
Added:
*** TODO Beautify Org mode buffer
596
603
597
604
Not only indent, but also clean up superfluous newlines.
598
605