From c248ab0852bebf1d0ae0d3a002d9e9ee55c97b2e Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Thu, 6 Jan 2022 00:47:37 +0000 Subject: (Emacs)~tons of edits I can't be bothered to annotate any of these. Thinking of making a new Emacs configuration as this one is unnecessarily bloated and I can't think of any other way to fix it. --- Emacs/.config/emacs/config.org | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'Emacs/.config/emacs/config.org') diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index fd468ef..1194a53 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -1144,10 +1144,11 @@ the projectile command map for quick access. :general (leader "p" #'projectile-command-map) :init - (setq projectile-tags-command "ctags -Re -f \"%s\" %s \"%s\"")) + (setq projectile-tags-command "ctags -R -f \"%s\" %s \"%s\"")) #+end_src *** Counsel projectile -Counsel projectile provides the ivy interface to projectile commands, which is really useful. +Counsel projectile provides the ivy interface to projectile commands, +which is really useful. #+begin_src emacs-lisp (use-package counsel-projectile :after (projectile counsel) @@ -1464,12 +1465,12 @@ are some corners I'd like to adjust). (dired-mode-hook . dired-hide-details-mode) (dired-mode-hook . auto-revert-mode) :init - (setq-default dired-listing-switches "-AFBl --group-directories-first") + (setq-default dired-listing-switches "-AFBl --sort=time --group-directories-first") :general (leader :infix "d" "f" #'find-dired - "D" #'dired-other-frame + "D" #'+dired/maybe-frame "d" #'dired-jump "l" (proc (interactive) (find-dired "~/Text/PDFs/" "-iname 'cs[0-9][0-9][0-9].pdf' -or -iname 'ma[0-9][0-9][0-9]*.pdf'"))) :config @@ -1488,6 +1489,12 @@ thumb, otherwise open the file." (image-dired-display-thumb) (find-file-other-frame filename)))) + (defun +dired/maybe-frame (&optional ARG) + (interactive "P") + (if ARG + (call-interactively #'dired-other-frame) + (call-interactively #'dired))) + (general-def :states '(normal motion) :keymaps 'dired-mode-map @@ -1854,6 +1861,9 @@ work for me given the various TeX utilities installed via Arch. :after ledger-mode) #+end_src ** Zone +:PROPERTIES: +:header-args:emacs-lisp: :tangle no +:END: Of course Emacs has a cool screensaver software. #+begin_src emacs-lisp @@ -2464,6 +2474,9 @@ book so it's useful to have some Emacs binds for it. "sd" #'racket-send-definition)) #+end_src ** CSharp +:PROPERTIES: +:header-args:emacs-lisp: :tangle no +:END: I sometimes use C# when I'm bored or if I'm trying out a language feature. #+begin_src emacs-lisp -- cgit v1.2.3-13-gbd6f