[Emacs] Move use-tcp-server stuff around

This commit is contained in:
Ivan Malison 2017-08-28 16:44:04 -07:00
parent 86eac4df01
commit beef8915df
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -1282,12 +1282,6 @@ proced is an top like utility that runs inside of emacs. The following sets auto
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(add-hook 'after-save-hook 'executable-make-buffer-file-executable-if-script-p) (add-hook 'after-save-hook 'executable-make-buffer-file-executable-if-script-p)
#+END_SRC #+END_SRC
** Use TCP Server
This variable used to make it so that emacs client would not detect the running
emacs server when emacs was not STARTED in daemon mode.
#+BEGIN_SRC emacs-lisp
(setq server-use-tcp t)
#+END_SRC
** Misc ** Misc
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(defvar iedit-toggle-key-default nil) (defvar iedit-toggle-key-default nil)
@ -1408,6 +1402,10 @@ Paradox is a package.el extension. I have no use for it now that I use straight.
(use-package server (use-package server
:config :config
(progn (progn
(defun imalison:get-server-filepath ()
(let ((server-dir (if server-use-tcp server-auth-dir server-socket-dir)))
(expand-file-name server-name server-dir)))
(setq server-use-tcp t)
(unless (server-running-p) (server-start)))) (unless (server-running-p) (server-start))))
#+END_SRC #+END_SRC
** list-environment ** list-environment