~protesilaos/emacs-notepad

128816503c26188890f1417e370690bc6d89ed8c — Protesilaos Stavrou 1 year, 7 months ago 97156d0
Add arrangement to load custom use configurations with emacs-notepad-user.org
1 files changed, 17 insertions(+), 0 deletions(-)

M emacs-notepad.org
M emacs-notepad.org => emacs-notepad.org +17 -0
@@ 1239,3 1239,20 @@ can set ~emacs-notepad-use-transient-prefix~ to ~nil~ in the
    :config
    (define-key global-map (kbd "C-.") 'emacs-notepad-transient-prefix)))
#+end_src

** Load the user's Org file with extra configurations

This arrangement allows the user to load an extra file with
configurations after everything else has been loaded.  This is useful
when, for example, the current Git repository is updated and the user
needs to pull the changes without affecting the custom extensions they
have written.  The file is called =emacs-notepad-user.org= and is
placed in the same directory as =emacs-notepad.org=.

#+begin_src emacs-lisp
(defvar emacs-notepad-user-init (locate-user-emacs-file "emacs-notepad-user.org")
  "File name of the user's literate config.")

(when (file-exists-p emacs-notepad-user-init)
  (org-babel-load-file emacs-notepad-user-init))
#+end_src