about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2020-09-15 13:38:20 -0500
committerCase Duckworth2020-09-15 13:38:20 -0500
commit6b01b595a6304d410d2e627209a453c27102fa90 (patch)
tree5b346b1ff0c27219077138c0fee0335cd1d4eebb
parentAdd post-to-gemlog-blue (diff)
downloademacs-6b01b595a6304d410d2e627209a453c27102fa90.tar.gz
emacs-6b01b595a6304d410d2e627209a453c27102fa90.zip
Add stuff from email today: packages, load-prefer-newer
-rw-r--r--init.el65
1 files changed, 47 insertions, 18 deletions
diff --git a/init.el b/init.el index 23ac83d..dd0e0ec 100644 --- a/init.el +++ b/init.el
@@ -10,7 +10,19 @@
10 (setq calendar-longitude -91.83) 10 (setq calendar-longitude -91.83)
11 11
12 (setq browse-url-browser-function 'browse-url-generic) 12 (setq browse-url-browser-function 'browse-url-generic)
13 (setq browse-url-generic-program "firefox")) 13 (setq browse-url-generic-program "firefox")
14
15 (setq load-prefer-newer t))
16
17(use-package no-littering
18 :init
19 (require 'recentf)
20 (add-to-list 'recentf-exclude no-littering-var-directory)
21 (add-to-list 'recentf-exclude no-littering-etc-directory)
22
23 (setq auto-save-file-name-transforms
24 `((".*" ,(no-littering-expand-var-file-name "auto-save/") t)))
25 (setq custom-file (no-littering-expand-etc-file-name "custom.el")))
14 26
15(use-package auth-source 27(use-package auth-source
16 :init 28 :init
@@ -29,8 +41,6 @@
29 (setq kept-new-versions 6) 41 (setq kept-new-versions 6)
30 (setq kept-old-versions 4) 42 (setq kept-old-versions 4)
31 (setq create-lockfiles nil) 43 (setq create-lockfiles nil)
32 (setq auto-save-file-name-transforms
33 `((".*" ,(concat user-emacs-directory "backups/") t)))
34 (auto-save-mode) 44 (auto-save-mode)
35 45
36 (defun full-auto-save () 46 (defun full-auto-save ()
@@ -132,22 +142,36 @@
132 142
133(use-package restart-emacs) 143(use-package restart-emacs)
134 144
135(use-package ivy 145(use-package volatile-highlights
136 :init
137 (setq ivy-use-virtual-buffers t)
138 (setq ivy-wrap t)
139 (setq ivy-count-format "(%d/%d) ")
140 (setq enable-recursive-minibuffers t)
141 (setq ivy-re-builders-alist
142 '((read-file-name-internal . ivy--regex-fuzzy)
143 (t . ivy--regex-plus)))
144 :bind
145 ("C-x b" . ivy-switch-buffer)
146 ("C-c v" . ivy-push-view)
147 ("C-c V" . ivy-pop-view)
148 ("C-c C-r" . ivy-resume)
149 :config 146 :config
150 (ivy-mode)) 147 (volatile-highlights-mode t))
148
149(use-package zop-to-char
150 :bind
151 ([remap zap-to-char] . zop-to-char)
152 ([remap zap-up-to-char] . zop-up-to-char))
153
154(use-package easy-kill
155 :bind
156 ([remap kill-ring-save] . easy-kill)
157 ([remap mark-sexp] . easy-mark))
158
159 (use-package ivy
160 :init
161 (setq ivy-use-virtual-buffers t)
162 (setq ivy-wrap t)
163 (setq ivy-count-format "(%d/%d) ")
164 (setq enable-recursive-minibuffers t)
165 (setq ivy-re-builders-alist
166 '((read-file-name-internal . ivy--regex-fuzzy)
167 (t . ivy--regex-plus)))
168 :bind
169 ("C-x b" . ivy-switch-buffer)
170 ("C-c v" . ivy-push-view)
171 ("C-c V" . ivy-pop-view)
172 ("C-c C-r" . ivy-resume)
173 :config
174 (ivy-mode))
151 175
152(use-package swiper 176(use-package swiper
153 :bind 177 :bind
@@ -246,6 +270,11 @@
246 :init 270 :init
247 (setq delete-by-moving-to-trash t))) 271 (setq delete-by-moving-to-trash t)))
248 272
273(use-package smartparens
274 :config
275 (require 'smartparens-config)
276 (smartparens-global-mode))
277
249;;; writing 278;;; writing
250 279
251(use-package visual-fill-column 280(use-package visual-fill-column