Org: Fix desktop-files-not-to-save setting
parent
916cee19fb
commit
501c511140
|
@ -57,7 +57,9 @@
|
|||
(when (file-exists-p contacts)
|
||||
;; When used to auto-complete e-mail addresses, the file is automatically
|
||||
;; loaded. The buffer usually need not be restored by a desktop session.
|
||||
(setq desktop-files-not-to-save (concat (substring desktop-files-not-to-save 0 -2) "\\|" (regexp-quote (expand-file-name contacts)) "\\)"))
|
||||
(setq desktop-files-not-to-save (if (>= (length desktop-files-not-to-save) 2)
|
||||
(concat (substring desktop-files-not-to-save 0 -2) "\\|" (regexp-quote (expand-file-name contacts)) "\\)")
|
||||
(regexp-quote (expand-file-name contacts))))
|
||||
(setq org-contacts-files (list contacts)))))
|
||||
|
||||
(provide 'init-org)
|
||||
|
|
Loading…
Reference in New Issue