add auto-start of KmN org persp-mode config when opening an org file in the org profile
This commit is contained in:
parent
f56c4809cd
commit
e7dfca78c4
11
org/init.el
11
org/init.el
|
@ -110,3 +110,14 @@
|
|||
(load "~/.emacs.d.profiles/org/config-org-desktop.el"))
|
||||
(when kmn/is-termux
|
||||
(load "~/.emacs.d.profiles/org/config-org-mobile.el"))
|
||||
|
||||
(with-eval-after-load "persp-mode-autoload"
|
||||
(with-eval-after-load "org"
|
||||
(persp-def-auto-persp "KmN"
|
||||
:mode-name ".*org-mode.*"
|
||||
:noauto
|
||||
:dyn-env '(after-switch-to-buffer-functions ;; prevent recursion
|
||||
(persp-add-buffer-on-find-file nil)
|
||||
persp-add-buffer-on-after-change-major-mode)
|
||||
:hooks '(after-switch-to-buffer-functions)
|
||||
:switch 'window)))
|
||||
|
|
Reference in a new issue