[CHANGED] always start emacs server, updated reload-dot-emacs.
This commit is contained in:
parent
1217e61f5b
commit
4e4b27aba1
1 changed files with 7 additions and 4 deletions
11
emacs
11
emacs
|
|
@ -191,6 +191,9 @@
|
|||
;; customizations ;;
|
||||
;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
;; always start emacs server
|
||||
(server-start)
|
||||
|
||||
;; setup tramp mode
|
||||
(setq tramp-default-method "ssh")
|
||||
|
||||
|
|
@ -292,12 +295,12 @@
|
|||
;; first saving histories with Persistent
|
||||
(defun reload-dot-emacs () (interactive)
|
||||
"If there is a buffer named .emacs save it. Reload ~/.emacs if it exists."
|
||||
(if (get-buffer ".emacs")
|
||||
(if (get-buffer "emacs")
|
||||
(save-excursion
|
||||
(set-buffer ".emacs")
|
||||
(set-buffer "emacs")
|
||||
(save-buffer)))
|
||||
(if (file-exists-p "~/.emacs")
|
||||
(load-file "~/.emacs")))
|
||||
(if (file-exists-p "~/config/emacs")
|
||||
(load-file "~/config/emacs")))
|
||||
|
||||
;; find recently visited files quickly
|
||||
(defun recentf-find-files-compl ()
|
||||
|
|
|
|||
Loading…
Reference in a new issue