summaryrefslogtreecommitdiff
path: root/lisp/system.el
diff options
context:
space:
mode:
authorJakob L. Kreuze2020-06-01 16:53:50 -0400
committerJakob L. Kreuze2020-06-01 16:53:50 -0400
commit6c7f0b8ae2de30a808901b16b0d462fe833ea1b4 (patch)
tree2cc0a3e9022fc43c39e5b91f4e7832b5387636e9 /lisp/system.el
parent4d4f759881e310818055c31f286158da9db60d1c (diff)
Break config into files.
Diffstat (limited to 'lisp/system.el')
-rw-r--r--lisp/system.el68
1 files changed, 68 insertions, 0 deletions
diff --git a/lisp/system.el b/lisp/system.el
new file mode 100644
index 0000000..3c317c6
--- /dev/null
+++ b/lisp/system.el
@@ -0,0 +1,68 @@
+;;; system.el -*- lexical-binding: t; -*-
+;;;
+;;; Author: Jakob L. Kreuze <zerodaysfordays@sdf.org>
+;;; URL: https://git.sr.ht/~jakob/.emacs.d/
+;;;
+;;; Configuration for packages which work at the operating system level
+;;; (particularly the file system).
+;;;
+
+;; Set up keybindings for calling 'ag'.
+
+(use-package ag
+ :bind
+ ("C-c k" . counsel-ag))
+
+(use-package dired
+ :straight nil
+ ;; Hide the targets of symbolic links in `dired' listings. This is a visual
+ ;; preference of mine.
+ :init
+ (setq-default dired-listing-switches "-alL")
+
+ ;; Show '.eln' files the same way that '.elc' files are.
+ :config
+ (push ".eln" completion-ignored-extensions))
+
+(use-package dired-rmjunk
+ ;; Set up a keybinding for invoking `dired-rmjunk' from `dired-mode'.
+ :bind
+ (:map dired-mode-map
+ ("r" . dired-rmjunk))
+
+ ;; Implement my customizations from =rmshit.py=.
+ :init
+ (setq dired-rmjunk-patterns
+ '(".recently-used"
+ ".local/share/recently-used.xbel"
+ ".thumbnails"
+ ".gconfd"
+ ".gconf"
+ ".local/share/gegl-0.2"
+ ".gstreamer-0.10"
+ ".esd_auth"
+ ".config/enchant"
+ ".parallel"
+ ".dbus"
+ "ca2"
+ "ca2~"
+ ".nv/"
+ ".npm/"
+ ".java/"
+ ".oracle_jre_usage/"
+ ".jssc/"
+ ".tox/"
+ ".pylint.d/"
+ ".guile_history"
+ ".sqlite_history"
+ ".python_history"
+ ".hy-history"
+ ".lesshst"
+ ".audacity-data"
+ ".wget-hsts"
+ ".scapy_history"
+ ".gdb_history"
+ ".binwalk"
+ ".lyrics"
+ ".slime-history.eld"
+ ".w3m")))

© 2015 - 2026 Jakob L. Kreuze