Просмотр исходного кода

~/.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
Родитель
Сommit
b7cee891cb
1 измененных файлов с 7 добавлено и 0 удалено
  1. 7 0
      .emacs.d/init.el

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

65
65
66
(global-set-key (kbd "C-x C-S-n") 'create-note)
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
(custom-set-faces
75
(custom-set-faces
69
 '(default ((t (:family "Fantasque Sans Mono" :height 124)))))
76
 '(default ((t (:family "Fantasque Sans Mono" :height 124)))))
70
77