Add emacs localfile support

This commit is contained in:
Marco Thomas
2021-06-23 12:21:55 +02:00
parent 85efcbaea8
commit 3869f61d72

View File

@@ -6,8 +6,7 @@
;
; ~ M. Thomas
(setq make-backup-files nil) ;; We dont need these
(setq auto-save-default nil) ;; Not this one either
(setq make-backup-files nil) ;; We dont need these (setq auto-save-default nil) ;; Not this one either
(menu-bar-mode -1) ;; The menu bar looks ugly in terminal
(tool-bar-mode -1) ;; Nobody needs this
(scroll-bar-mode -1)
@@ -447,12 +446,12 @@
("\\ex" ?∃)
("\\all" ?∀)
; sets of numbers
("NN" ?)
("ZZ" ?)
("QQ" ?)
("RR" ?)
("CC" ?)
("PP" ?)
("\\NN" ?)
("\\ZZ" ?)
("\\QQ" ?)
("\\RR" ?)
("\\CC" ?)
("\\PP" ?)
)
(mapc (lambda (x)
(if (cddr x)
@@ -505,3 +504,8 @@
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
;; load local file
(when (file-exists-p "~/.emacs.d/local.el")
(message "Loading ~/.emacs.d/local.el")
(load-file "~/.emacs.d/local.el"))