6b33031dc5
- Rename contrib directory to layers - Add new variable dotspacemacs-distribution - Move spacemacs layer to layers/!distribution - New layer spacemacs-core in layers/!distribution - User can now set dotspacemacs-distribution to spacemacs or spacemacs-core (default spacemacs) spacemacs-core is very lightweight layer sufficient to build upon spacemacs.
6 lines
174 B
EmacsLisp
6 lines
174 B
EmacsLisp
(defun spacemacs/get-parent-dir ()
|
|
(car (cdr ; Last item
|
|
(reverse
|
|
(split-string
|
|
(file-name-sans-extension (buffer-file-name))
|
|
"/")))))
|