From ea4798dce3a4b848d1c7749fd26201a38e3c41bb Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 19 Aug 2011 08:23:21 -0400 Subject: emacs: - disable php flymake (problems with TRAMP) - use tcp instead of local sockets - disable the tool bar - move mailto-compose-mail to .emacs.d/emacsutils.el - add emacs-terminal-emulator to .emacs.d/emacsutils.el --- .emacs.d/emacsutils.el | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .emacs.d/emacsutils.el (limited to '.emacs.d') diff --git a/.emacs.d/emacsutils.el b/.emacs.d/emacsutils.el new file mode 100644 index 0000000..966d16e --- /dev/null +++ b/.emacs.d/emacsutils.el @@ -0,0 +1,13 @@ +(defun mailto-compose-mail (mailto-url) + (if (and (stringp mailto-url) + (string-match "\\`mailto:" mailto-url)) + (progn + (require 'rfc2368) + (let* ((headers (mapcar (lambda (h) (cons (intern (car h)) (cdr h))) + (rfc2368-parse-mailto-url mailto-url))) + (good-headers (remove-if (lambda (h) (member (car h) '(Body))) headers)) + (body (cdr (assoc 'Body headers)))) + (wl-draft good-headers nil nil body))))) + +(defun emacs-terminal-emulator (program) + (ansi-term program)) \ No newline at end of file -- cgit v1.2.3