summary refs log tree commit diff stats
path: root/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'init.el')
-rw-r--r--init.el47
1 files changed, 20 insertions, 27 deletions
diff --git a/init.el b/init.el index a836386..9423887 100644 --- a/init.el +++ b/init.el
@@ -1,21 +1,19 @@
1;;; init.el -*- lexical-binding: t; coding: utf-8-unix -*- 1;;; init.el -*- lexical-binding: t; coding: utf-8-unix -*-
2;;
3;; Author: Case Duckworth <acdw@acdw.net> 2;; Author: Case Duckworth <acdw@acdw.net>
4;; Created: Sometime during Covid-19, 2020 3;; Created: Sometime during Covid-19, 2020
5;; Keywords: configuration 4;; Keywords: configuration
6;; URL: https://tildegit.org/acdw/emacs 5;; URL: https://tildegit.org/acdw/emacs
7;; Bankruptcy: 5c 6;; Bankruptcy: 5c
8;; 7
9;; This file is NOT part of GNU Emacs. 8;; This file is NOT part of GNU Emacs.
10;; 9
11;;; License: 10;;; License:
12;;
13;; Everyone is permitted to do whatever with this software, without 11;; Everyone is permitted to do whatever with this software, without
14;; limitation. This software comes without any warranty whatsoever, 12;; limitation. This software comes without any warranty whatsoever,
15;; but with two pieces of advice: 13;; but with two pieces of advice:
16;; - Don't hurt yourself. 14;; - Don't hurt yourself.
17;; - Make good choices. 15;; - Make good choices.
18;; 16
19;;; Code: 17;;; Code:
20 18
21;;; Add `acdw.el' 19;;; Add `acdw.el'
@@ -286,9 +284,7 @@
286 (modus-themes-scale-headings nil) 284 (modus-themes-scale-headings nil)
287 (modus-themes-mode-line nil)) 285 (modus-themes-mode-line nil))
288 :now ((acdw/sunrise-sunset #'modus-themes-load-operandi 286 :now ((acdw/sunrise-sunset #'modus-themes-load-operandi
289 #'modus-themes-load-vivendi) 287 #'modus-themes-load-vivendi)))
290 ;; for june
291 (global-font-lock-mode -1)))
292 288
293;; Expand-region 289;; Expand-region
294(acdw/pkg expand-region 290(acdw/pkg expand-region
@@ -346,29 +342,26 @@
346 (prog-mode-hook goto-address-prog-mode))) 342 (prog-mode-hook goto-address-prog-mode)))
347 343
348;;; Dired 344;;; Dired
349 345(acdw/pkg dired
350(acdw/set `((dired-recursive-copies always) 346 :local t
347 :set `((dired-recursive-copies always)
351 (dired-recursive-deletes always) 348 (dired-recursive-deletes always)
352 (delete-by-moving-to-trash t) 349 (delete-by-moving-to-trash t)
353 (dired-listing-switches "-Al") 350 (dired-listing-switches "-Al")
354 (ls-lisp-dirs-first t) 351 (ls-lisp-dirs-first t)
355 (dired-dwim-target t))) 352 (dired-dwim-target t))
356 353 :now ((autoload 'dired-mode-map "dired" nil nil 'keymap)
357(defun hook--dired-mode () 354 (acdw/pkg dired-subtree)
358 (hl-line-mode +1) 355 (acdw/pkg dired-x
359 (dired-hide-details-mode +1)) 356 :local t
360(add-hook 'dired-mode-hook #'hook--dired-mode) 357 :binds (("C-x C-j" dired-jump)))
361 358 (acdw/pkg dired-collapse
362(acdw/bind "C-x C-j" dired-jump :after "dired-x") 359 :hooks ((dired-mode-hook dired-collapse-mode)))
363 360 (defun hook--dired-mode ()
364(with-eval-after-load 'dired 361 (hl-line-mode +1)
365 ;; I tried `autoload'ing the keymap, and it just wouldn't work. I have no 362 (dired-hide-details-mode +1)))
366 ;; idea what the issue was. 363 :hooks ((dired-mode-hook hook--dired-mode))
367 (acdw/pkg dired-subtree 364 :binds (("i" dired-subtree-toggle :map dired-mode-map)))
368 :binds (("i" dired-subtree-toggle :map dired-mode-map))))
369
370(acdw/pkg dired-collapse
371 :hooks ((dired-mode-hook dired-collapse-mode)))
372 365
373;;; Eshell 366;;; Eshell
374 367