Browse Source

load files relative

master
Brett Langdon 7 years ago
parent
commit
75707ca8ba
No known key found for this signature in database GPG Key ID: E6600FB894DB3D19
1 changed files with 9 additions and 2 deletions
  1. +9
    -2
      emacs.d/init.el

+ 9
- 2
emacs.d/init.el View File

@ -30,8 +30,11 @@
;; -- Core setup --
(progn
;; Current directory name, probably "~/emacs.d"
(setq current-dir (file-name-directory load-file-name))
;; Configure customization
(setq custom-file "~/.emacs.d/custom.el")
(setq custom-file (expand-file-name "custom.el" current-dir))
(load custom-file)
;; Hide startup message
@ -75,6 +78,10 @@
;; Save place in file
(save-place-mode 1)
;; Enable both of these commands
(put 'downcase-region 'disabled nil)
(put 'upcase-region 'disabled nil)
;; Save history
(setq savehist-additional-variables '(mark-ring
global-mark-ring
@ -212,4 +219,4 @@
;; -- Load layers --
(mapc 'load (file-expand-wildcards "~/.emacs.d/layers/*/*.el"))
(mapc 'load (file-expand-wildcards (expand-file-name "layers/*/*.el" current-dir)))

Loading…
Cancel
Save