Compare commits
2 commits
16c2879a16
...
1ac7b99e60
Author | SHA1 | Date | |
---|---|---|---|
1ac7b99e60 | |||
f810c51ec8 |
3 changed files with 12 additions and 3 deletions
|
@ -8,8 +8,6 @@
|
|||
(setq org-log-done 'time) ; keep track of when a certain TODO item was marked as
|
||||
; done
|
||||
|
||||
(setq org-log-done 'note) ; record a note along with the timestamp
|
||||
|
||||
(setq org-log-into-drawer t) ; log into LOGBOOK drawer
|
||||
|
||||
(setq org-src-fontify-natively t) ; highlight the code in Org-mode
|
||||
|
|
|
@ -228,6 +228,17 @@ The tee executable is required for the sudo execution."))
|
|||
The tee executable is required for the sudo execution.")))
|
||||
(write-region (point-min) (point-max) file))))
|
||||
|
||||
(defun my-run-after-emacs-startup (func)
|
||||
"Run FUNC after Emacs startup, with special handling for daemon mode."
|
||||
(if (daemonp)
|
||||
(add-hook 'after-make-frame-functions
|
||||
(lambda (frame)
|
||||
(with-selected-frame frame
|
||||
(funcall func))))
|
||||
(add-hook 'emacs-startup-hook func)))
|
||||
;; use the function for `desktop-read`
|
||||
;; (my-run-after-emacs-startup 'desktop-read)
|
||||
|
||||
|
||||
(provide 'init-pre)
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
)
|
||||
(desktop-save-mode 1)
|
||||
|
||||
(add-hook 'emacs-startup-hook 'desktop-read)
|
||||
(my-run-after-emacs-startup 'desktop-read)
|
||||
|
||||
;; save a bunch of variables to the desktop file
|
||||
;; for lists specify the len of the maximal saved data also
|
||||
|
|
Loading…
Reference in a new issue