Adding Subdirectories to Load Path

前端 未结 2 1626
猫巷女王i
猫巷女王i 2021-02-05 12:12

Rather than individually specifing each subdirectory in my plugins directory I want to be able to automatically load them, to that end I included the following to my .emacs file

2条回答
  •  半阙折子戏
    2021-02-05 12:39

    You're so close...

    (let ((default-directory "~/.emacs.d/plugins/"))
      (normal-top-level-add-subdirs-to-load-path))
    

    normal-top-level-add-subdirs-to-load-path works off the current directory, which you can set via the variable default-directory - not base like you tried.

提交回复
热议问题