; Add .emacs.d/libs/markdown-mode to the path (setq load-path (cons "~/.emacs.d/libs/markdown-mode" load-path)) ; and use markdown mode => http://jblevins.org/projects/markdown-mode/ (autoload 'markdown-mode "markdown-mode.el" "Major mode for editing Markdown files" t) (setq auto-mode-alist (cons '("\\.txt" . markdown-mode) auto-mode-alist)) (setq auto-mode-alist (cons '("\\.txt\\.gpg" . markdown-mode) auto-mode-alist)) ; Activate transparent GnuPG encryption. (require 'epa-file) (epa-file-enable) ; And add proper word wrapping (global-visual-line-mode) ; also a simple way to get the current date (defun datum () "print the current time in iso-format" (interactive) (insert (format-time-string "%Y-%m-%d %H:%M:%S") "\n-------------------\n\n")) ; and some customizations, including saving the position in the buffer (custom-set-variables '(current-language-environment "UTF-8") '(default-input-method "rfc1345") '(inhibit-startup-screen t) '(save-place t nil (saveplace)))