|
|
|
@ -159,9 +159,10 @@ setq org-log-done t)
|
|
|
|
|
(let ((trailnewlines (abs (skip-chars-backward "\n\t")))) |
|
|
|
|
(if (> trailnewlines 0) |
|
|
|
|
(progn |
|
|
|
|
(delete-char trailnewlines)))))) |
|
|
|
|
(delete-char trailnewlines))))))) |
|
|
|
|
|
|
|
|
|
(add-hook 'before-save-hook 'delete-trailing-whitespace)) |
|
|
|
|
(add-hook 'before-save-hook 'delete-trailing-whitespace) |
|
|
|
|
(add-hook 'before-save-hook 'delete-trailing-blank-lines) |
|
|
|
|
|
|
|
|
|
;; Comment this if you dont mind git diffs complaining about missing ending newlines. |
|
|
|
|
(setq require-final-newline t) |
|
|
|
|