From 6c7f0b8ae2de30a808901b16b0d462fe833ea1b4 Mon Sep 17 00:00:00 2001 From: Jakob L. Kreuze Date: Mon, 1 Jun 2020 16:53:50 -0400 Subject: Break config into files. --- lisp/system.el | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 lisp/system.el (limited to 'lisp/system.el') 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 +;;; 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"))) -- cgit v1.3