summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2017-04-28 14:17:58 +0200
committerAlan Pearce2017-04-28 14:17:58 +0200
commit5f247227ca6cce1f24b432df2f98fed5b603cb1c (patch)
tree1e315b71c8cdc61bddb7ed53743cbfa7ef041bed /emacs
parent6c55e4a29ea01f62af3d8ec73709b3273d4511e1 (diff)
downloadnixfiles-5f247227ca6cce1f24b432df2f98fed5b603cb1c.tar.lz
nixfiles-5f247227ca6cce1f24b432df2f98fed5b603cb1c.tar.zst
nixfiles-5f247227ca6cce1f24b432df2f98fed5b603cb1c.zip
Emacs: Use use-package for more builtins
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/init.org13
1 files changed, 7 insertions, 6 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org
index f79362e9..098883f0 100644
--- a/emacs/.emacs.d/init.org
+++ b/emacs/.emacs.d/init.org
@@ -2323,7 +2323,8 @@ I’m quite used to deleting text by selecting it and typing.  Emacs has
 a mode for that.
 
 #+BEGIN_SRC emacs-lisp
-(delete-selection-mode t)
+(use-package delsel
+  :config (delete-selection-mode t))
 #+END_SRC
 
 Sub-word movement is really nice for camel- and Pascal-case
@@ -2582,11 +2583,11 @@ the =org=-document after changes.
 
 Start a server if possible.  A daemon is already a server.
 #+BEGIN_SRC emacs-lisp
-(run-with-idle-timer 2 nil (lambda ()
-                             (unless (daemonp)
-                               (require 'server)
-                               (unless (server-running-p server-name)
-                                 (server-start)))))
+(use-package server
+  :defer 2
+  :if (not (or (daemonp)
+               (server-running-p server-name)))
+  :config (server-start))
 (setq gc-cons-threshold 800000
       file-name-handler-alist file-name-handler-alist-backup)
 #+END_SRC