Sfoglia il codice sorgente

~/.emacs.d: Add shortcut for writing diary entries

`C-x C-d` opens a buffer with the contents of `~/w/YYYY-mm-dd.txt` with
the simple-writing-mode enabled.  Very handy.
Lucas Stadler 9 anni fa
parent
commit
b7cee891cb
1 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  1. 7 0
      .emacs.d/init.el

+ 7 - 0
.emacs.d/init.el

@ -65,6 +65,13 @@
65 65
66 66
(global-set-key (kbd "C-x C-S-n") 'create-note)
67 67
68
(defun find-diary-entry ()
69
  (interactive)
70
  (find-file (format-time-string "~/w/%Y-%m-%d.txt"))
71
  (simple-writing-mode t))
72
73
(global-set-key (kbd "C-x C-d") 'find-diary-entry)
74
68 75
(custom-set-faces
69 76
 '(default ((t (:family "Fantasque Sans Mono" :height 124)))))
70 77