(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.
This commit is contained in:
@@ -1144,10 +1144,11 @@ the projectile command map for quick access.
|
|||||||
:general
|
:general
|
||||||
(leader "p" #'projectile-command-map)
|
(leader "p" #'projectile-command-map)
|
||||||
:init
|
:init
|
||||||
(setq projectile-tags-command "ctags -Re -f \"%s\" %s \"%s\""))
|
(setq projectile-tags-command "ctags -R -f \"%s\" %s \"%s\""))
|
||||||
#+end_src
|
#+end_src
|
||||||
*** Counsel projectile
|
*** 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
|
#+begin_src emacs-lisp
|
||||||
(use-package counsel-projectile
|
(use-package counsel-projectile
|
||||||
:after (projectile counsel)
|
: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 . dired-hide-details-mode)
|
||||||
(dired-mode-hook . auto-revert-mode)
|
(dired-mode-hook . auto-revert-mode)
|
||||||
:init
|
:init
|
||||||
(setq-default dired-listing-switches "-AFBl --group-directories-first")
|
(setq-default dired-listing-switches "-AFBl --sort=time --group-directories-first")
|
||||||
:general
|
:general
|
||||||
(leader
|
(leader
|
||||||
:infix "d"
|
:infix "d"
|
||||||
"f" #'find-dired
|
"f" #'find-dired
|
||||||
"D" #'dired-other-frame
|
"D" #'+dired/maybe-frame
|
||||||
"d" #'dired-jump
|
"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'")))
|
"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
|
:config
|
||||||
@@ -1488,6 +1489,12 @@ thumb, otherwise open the file."
|
|||||||
(image-dired-display-thumb)
|
(image-dired-display-thumb)
|
||||||
(find-file-other-frame filename))))
|
(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
|
(general-def
|
||||||
:states '(normal motion)
|
:states '(normal motion)
|
||||||
:keymaps 'dired-mode-map
|
:keymaps 'dired-mode-map
|
||||||
@@ -1854,6 +1861,9 @@ work for me given the various TeX utilities installed via Arch.
|
|||||||
:after ledger-mode)
|
:after ledger-mode)
|
||||||
#+end_src
|
#+end_src
|
||||||
** Zone
|
** Zone
|
||||||
|
:PROPERTIES:
|
||||||
|
:header-args:emacs-lisp: :tangle no
|
||||||
|
:END:
|
||||||
Of course Emacs has a cool screensaver software.
|
Of course Emacs has a cool screensaver software.
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
@@ -2464,6 +2474,9 @@ book so it's useful to have some Emacs binds for it.
|
|||||||
"sd" #'racket-send-definition))
|
"sd" #'racket-send-definition))
|
||||||
#+end_src
|
#+end_src
|
||||||
** CSharp
|
** 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
|
I sometimes use C# when I'm bored or if I'm trying out a language
|
||||||
feature.
|
feature.
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
|||||||
@@ -30,6 +30,9 @@
|
|||||||
;; this opportunity to make a new mode and see what facilities Emacs
|
;; this opportunity to make a new mode and see what facilities Emacs
|
||||||
;; provides for it.
|
;; provides for it.
|
||||||
|
|
||||||
|
;;; Other notes:
|
||||||
|
;; TODO: Handle indenting
|
||||||
|
|
||||||
;;; Code:
|
;;; Code:
|
||||||
|
|
||||||
(require 'generic-x)
|
(require 'generic-x)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
(deftheme personal
|
(deftheme personal
|
||||||
"Created 2021-07-28.")
|
"Created 2021-10-20.")
|
||||||
|
|
||||||
(custom-theme-set-faces
|
(custom-theme-set-faces
|
||||||
'personal
|
'personal
|
||||||
@@ -26,13 +26,13 @@
|
|||||||
'(font-lock-regexp-grouping-backslash ((t (:inherit (bold)))))
|
'(font-lock-regexp-grouping-backslash ((t (:inherit (bold)))))
|
||||||
'(font-lock-regexp-grouping-construct ((t (:inherit (bold)))))
|
'(font-lock-regexp-grouping-construct ((t (:inherit (bold)))))
|
||||||
'(font-lock-string-face ((t (:family "Fira Code" :foreground "yellow4"))))
|
'(font-lock-string-face ((t (:family "Fira Code" :foreground "yellow4"))))
|
||||||
'(font-lock-type-face ((t (:foreground "chartreuse" :height 0.95 :width ultra-expanded :family "Hack"))))
|
'(font-lock-type-face ((t (:foreground "chartreuse" :family "Liberation Mono"))))
|
||||||
'(font-lock-variable-name-face ((t (:family "Source Code Variable" :foreground "#e6e6e6"))))
|
'(font-lock-variable-name-face ((t (:family "Source Code Variable" :foreground "#e6e6e6"))))
|
||||||
'(font-lock-warning-face ((t (:inherit (error)))))
|
'(font-lock-warning-face ((t (:inherit (error)))))
|
||||||
'(button ((t (:inherit (link)))))
|
'(button ((t (:inherit (link)))))
|
||||||
'(link ((t (:underline (:color foreground-color :style line) :foreground "cyan1"))))
|
'(link ((t (:underline (:color foreground-color :style line) :foreground "cyan1"))))
|
||||||
'(link-visited ((t (:foreground "violet" :inherit (link)))))
|
'(link-visited ((t (:foreground "violet" :inherit (link)))))
|
||||||
'(fringe ((((class color) (background light)) (:background "grey95")) (((class color) (background dark)) (:background "grey10")) (t (:background "gray"))))
|
'(fringe ((t (:background "grey4"))))
|
||||||
'(header-line ((t (:box nil :foreground "grey90" :background "grey20" :inherit (mode-line)))))
|
'(header-line ((t (:box nil :foreground "grey90" :background "grey20" :inherit (mode-line)))))
|
||||||
'(tooltip ((t (:foreground "black" :background "lightyellow" :inherit (variable-pitch)))))
|
'(tooltip ((t (:foreground "black" :background "lightyellow" :inherit (variable-pitch)))))
|
||||||
'(mode-line ((t (:box (:line-width -1 :color nil :style released-button) :foreground "white" :background "black"))))
|
'(mode-line ((t (:box (:line-width -1 :color nil :style released-button) :foreground "white" :background "black"))))
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
("key-chord" . "7f7fd7c5bd2b996fa054779357e1566f7989e07d")
|
("key-chord" . "7f7fd7c5bd2b996fa054779357e1566f7989e07d")
|
||||||
("ledger-mode" . "4c48d4136229e1ba399906d6b23f7f39c9d4fb3c")
|
("ledger-mode" . "4c48d4136229e1ba399906d6b23f7f39c9d4fb3c")
|
||||||
("let-alist" . "6708ec0b2e6dff80ff5b64698aa009d9070a2ed2")
|
("let-alist" . "6708ec0b2e6dff80ff5b64698aa009d9070a2ed2")
|
||||||
("magit" . "cb9bb20cfe8e3a50df8669a43611ebc9a516358a")
|
("magit" . "386843483b262ad57b24aec3167035b01acb4bf1")
|
||||||
("melpa" . "74f79dc5db5246a2f70e4d4ad76601be8b5c79d8")
|
("melpa" . "74f79dc5db5246a2f70e4d4ad76601be8b5c79d8")
|
||||||
("nhexl-mode" . "211e6c72e1489426cde64eb9ac26719463524bde")
|
("nhexl-mode" . "211e6c72e1489426cde64eb9ac26719463524bde")
|
||||||
("no-littering" . "57357e15643158b4e0d9b3b4f70a82f5fc73178a")
|
("no-littering" . "57357e15643158b4e0d9b3b4f70a82f5fc73178a")
|
||||||
|
|||||||
Reference in New Issue
Block a user