[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 ;;
|
;; customizations ;;
|
||||||
;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
|
;; always start emacs server
|
||||||
|
(server-start)
|
||||||
|
|
||||||
;; setup tramp mode
|
;; setup tramp mode
|
||||||
(setq tramp-default-method "ssh")
|
(setq tramp-default-method "ssh")
|
||||||
|
|
||||||
|
|
@ -292,12 +295,12 @@
|
||||||
;; first saving histories with Persistent
|
;; first saving histories with Persistent
|
||||||
(defun reload-dot-emacs () (interactive)
|
(defun reload-dot-emacs () (interactive)
|
||||||
"If there is a buffer named .emacs save it. Reload ~/.emacs if it exists."
|
"If there is a buffer named .emacs save it. Reload ~/.emacs if it exists."
|
||||||
(if (get-buffer ".emacs")
|
(if (get-buffer "emacs")
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(set-buffer ".emacs")
|
(set-buffer "emacs")
|
||||||
(save-buffer)))
|
(save-buffer)))
|
||||||
(if (file-exists-p "~/.emacs")
|
(if (file-exists-p "~/config/emacs")
|
||||||
(load-file "~/.emacs")))
|
(load-file "~/config/emacs")))
|
||||||
|
|
||||||
;; find recently visited files quickly
|
;; find recently visited files quickly
|
||||||
(defun recentf-find-files-compl ()
|
(defun recentf-find-files-compl ()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue