]> git.donarmstrong.com Git - lib.git/blobdiff - emacs_el/configuration/don-configuration.org
load tramp
[lib.git] / emacs_el / configuration / don-configuration.org
index d58ea8e46e5c25f61668721bfb4f831527631917..25012bd3d7e4634966d00c9fa7f89b6767683ffb 100644 (file)
@@ -30,6 +30,9 @@ load  [[https://github.com/jwiegley/use-package/][use-package]] even faster
 #+BEGIN_SRC emacs-lisp
   (setq package-enable-at-startup nil)
   (setq package--init-file-ensured t)
+  (setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/")
+                           ("melpa" . "https://melpa.org/packages/")
+                           ("org" . "http://orgmode.org/elpa/") ))
   (eval-and-compile
     (setq use-package-verbose (not (bound-and-true-p byte-compile-current-file))))
   (mapc #'(lambda (add) (add-to-list 'load-path add))
@@ -49,9 +52,6 @@ load  [[https://github.com/jwiegley/use-package/][use-package]] even faster
                        nil))
                      load-path))))))
 
-  (setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/")
-               ("melpa" . "https://melpa.org/packages/")
-               ("org" . "http://orgmode.org/elpa/") ))
   (require 'use-package)
   (require 'diminish)
   (require 'bind-key)
@@ -774,14 +774,16 @@ This can be used to link things pretty quickly if necessary
 
 ** Tramp
 #+BEGIN_SRC emacs-lisp
-  (add-to-list 'tramp-methods '("vcsh"
-                                (tramp-login-program "vcsh")
-                                (tramp-login-args
-                                 (("enter")
-                                  ("%h")))
-                                (tramp-remote-shell "/bin/sh")
-                                (tramp-remote-shell-args
-                                 ("-c"))))
+  (use-package tramp
+    :config
+    (add-to-list 'tramp-methods '("vcsh"
+                                  (tramp-login-program "vcsh")
+                                  (tramp-login-args
+                                   (("enter")
+                                    ("%h")))
+                                  (tramp-remote-shell "/bin/sh")
+                                  (tramp-remote-shell-args
+                                   ("-c")))))
 #+END_SRC
 ** Reftex
 #+BEGIN_SRC emacs-lisp
@@ -2214,8 +2216,8 @@ From http://julien.danjou.info/projects/emacs-packages#rainbow-mode, this colori
 If the envvar EMACS_SERVER_NAME is set, consider this a separate
 emacs, and use a different desktop file to restore history
 #+BEGIN_SRC emacs-lisp
-  (use-package desktop-save
-    :defer f
+  (use-package emacs
+    :demand
     :config
     (setq desktop-base-file-name
           (convert-standard-filename
@@ -2228,9 +2230,11 @@ emacs, and use a different desktop file to restore history
           (convert-standard-filename
            (concat desktop-base-file-name
                    ".lock")))
-    (desktop-save-mode 1)
     (setq desktop-auto-save-timeout 60)
-    (desktop-read)
+    (setq desktop-restore-eager 5)
+    (setq desktop-lazy-verbose nil)
+    (desktop-save-mode 1)
+    ; (desktop-read)
   )
 #+END_SRC
 ** Misc (Uncharacterized)
@@ -2389,7 +2393,7 @@ emacs, and use a different desktop file to restore history
     :config
     (setq server-name
           (or (getenv "EMACS_SERVER_NAME")
-              "emacs"))
+              "server"))
     (unless (server-running-p)
       (global-set-key "\C-xp" 'server-edit)
       (server-start)))