X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/75bd2d66ee6cd4a9a82343d2587817c558baae63..3cfdeaa9e603583f0d5745cb3211ff9b667c3428:/emacs diff --git a/emacs b/emacs index 496dd3b..2d0aaff 100644 --- a/emacs +++ b/emacs @@ -121,6 +121,18 @@ (setq sendmail-program "~/bin/sendmail-hack") (setq mail-user-agent 'message-user-agent) +(setq message-signature-separator "^-- \\(\\|\\[mdw\\]\\)$" + message-yank-prefix "> " + message-yank-cited-prefix "> " + message-indent-citation-function '(message-indent-citation + mdw-trim-spaces-after-citing)) + +(defun mdw-trim-spaces-after-citing () + (save-excursion + (save-restriction + (narrow-to-region (point) (mark t)) + (while (re-search-forward "^> +$" nil t) + (replace-match ">"))))) (and (fboundp 'turn-on-gnus-dired-mode) (not mdw-fast-startup) @@ -399,6 +411,8 @@ 'mouse-drag-vertical-line) (global-set-key [vertical-scroll-bar C-mouse-1] #'(lambda () (interactive))) +(and (not mdw-fast-startup) (fboundp 'hippie-expand) + (global-set-key [?\M-/] 'hippie-expand)) (defun mdw-clobber-org-mode-map () (dolist (key '([S-up] [S-down] [S-left] [S-right]