From 0905a0f1d58595cc9e4aebe3c295bb658c48ce9a Mon Sep 17 00:00:00 2001 From: Jakob L. Kreuze Date: Sat, 23 Feb 2019 16:58:56 -0500 Subject: A little bit of reorganization --- jakob.org | 264 ++++++++++++++++++++++++++++++++------------------------------ 1 file changed, 135 insertions(+), 129 deletions(-) diff --git a/jakob.org b/jakob.org index d2353bd..891f9da 100644 --- a/jakob.org +++ b/jakob.org @@ -116,6 +116,22 @@ massacre is not made of my =init.el=. (load custom-file)) #+END_SRC +I don't really care about persisting minibuffer history between sessions. + +#+BEGIN_SRC elisp +(use-package savehist + :straight nil + :config + (savehist-mode -1) +#+END_SRC + +And somehow, it still manages to run. + +#+BEGIN_SRC elisp + :init + (setq savehist-file "~/.cache/emacs/history")) +#+END_SRC + ** Quality of Life Use a consistent confirmation dialog of "y or n". @@ -840,31 +856,24 @@ Transformer to highlight channels in the =completing-read= of 'irc-switch-buffer-transformer)) #+END_SRC -* Counsel +Use Counsel to improve quality-of-life with Ivy. #+BEGIN_SRC elisp (use-package counsel) #+END_SRC -* Dired - -Hide the targets of symbolic links in dired listings. This is just a visual -preference of mine. - -#+BEGIN_SRC elisp -(use-package dired - :straight nil - :init - (setq-default dired-listing-switches "-alL")) -#+END_SRC - -* Imenu +* dim -Set up keybindings for =imenu=. +[[https://www.emacswiki.org/emacs/DelightedModes][Delight]] doesn't work for me, and [[https://github.com/myrjola/diminish.el][diminish]] is sadly lacking in the feature +department, so I'm choosing to clean up my modeline with dim. =use-package= +doesn't have an equivalent of =:diminish= or =:delight=, so the declarations occur +here. #+BEGIN_SRC elisp -(use-package imenu - :bind ("C-c s" . imenu)) +(use-package dim + :config + (dim-minor-name 'visual-line-mode "") + (dim-minor-name 'ivy-mode "")) #+END_SRC * EXWM @@ -1265,23 +1274,6 @@ items right on the first try. It's unhelpful and really just annoying. (setq org-drill-forgetting-index 100)) #+END_SRC -* Yasnippet - -Load all snippets when =yas-minor-mode= is enabled. - -#+BEGIN_SRC elisp -(use-package yasnippet - :hook - (yas-minor-mode . yas-reload-all) -#+END_SRC - -Enable Yasnippet for [[Org]]. - -#+BEGIN_SRC elisp - :hook - (org-mode . yas-minor-mode-on)) -#+END_SRC - * Elfeed Preference of hygene. See [[Filesystem]]. @@ -1516,6 +1508,51 @@ Ensure a package for starting an instance of Bitlbee. (setq bitlbee-user-directory "~/.config/bitlbee/")) #+END_SRC +* pdf-tools + +=doc-view= is unbearable for reading PDF's of any considerable size and +=pdf-tools= brings a number of significant improvements, so I can justify not +using the built-in solution. Even though I can run MuPDF in an [[EXWM]] buffer, the +integration in terms of searching and viewing attachments that comes with +=pdf-tools= makes for a much more pleasant experience. + +#+BEGIN_SRC elisp +(use-package pdf-tools + :config + (pdf-loader-install)) +#+END_SRC + +* ag + +#+BEGIN_SRC elisp +(use-package ag) +#+END_SRC + +* avy + +#+BEGIN_SRC elisp +(use-package avy + :bind + ("M-s" . avy-goto-char)) +#+END_SRC + +* Yasnippet + +Load all snippets when =yas-minor-mode= is enabled. + +#+BEGIN_SRC elisp +(use-package yasnippet + :hook + (yas-minor-mode . yas-reload-all) +#+END_SRC + +Enable Yasnippet for [[Org]]. + +#+BEGIN_SRC elisp + :hook + (org-mode . yas-minor-mode-on)) +#+END_SRC + * Pretty Symbols Enable =prettify-symbols= globally. @@ -1569,31 +1606,25 @@ as `org-src-fontify-natively' is non-nil." (set-buffer-modified-p modified))))) #+END_SRC -* Savehist +* Dired -I don't really care about persisting minibuffer history between sessions. +Hide the targets of symbolic links in dired listings. This is just a visual +preference of mine. #+BEGIN_SRC elisp -(use-package savehist +(use-package dired :straight nil - :config - (savehist-mode -1) -#+END_SRC - -And somehow, it still manages to run. - -#+BEGIN_SRC elisp :init - (setq savehist-file "~/.cache/emacs/history")) + (setq-default dired-listing-switches "-alL")) #+END_SRC -* SLIME +* Imenu + +Set up keybindings for =imenu=. #+BEGIN_SRC elisp -(use-package slime - :config - (setq inferior-lisp-program "/usr/bin/sbcl") - (setq slime-contribs '(slime-fancy))) +(use-package imenu + :bind ("C-c s" . imenu)) #+END_SRC * Tramp @@ -1607,61 +1638,9 @@ Preference of hygene. See [[Filesystem]]. (setq-default tramp-persistency-file-name "~/.cache/emacs/tramp")) #+END_SRC -* XScheme - -Configuration for using the [[https://wiki.call-cc.org/emacs#builtin-scheme-support][best Scheme implementation]]. - -#+BEGIN_SRC elisp -(use-package xscheme - :straight nil - :init - (setq scheme-program-name "csi -:c") -#+END_SRC - -Redefinition of =xscheme-default-command-line= so that '-emacs' is not passed to -=csi=, since it doesn't recognize the argument and complains about it. - -#+BEGIN_SRC elisp - :config - (defun xscheme-default-command-line () - (concat scheme-program-name - (if scheme-program-arguments - (concat " " scheme-program-arguments) - "") - (if scheme-band-name - (concat " -band " scheme-band-name) - "")))) -#+END_SRC - -* pdf-tools - -=doc-view= is unbearable for reading PDF's of any considerable size and -=pdf-tools= brings a number of significant improvements, so I can justify not -using the built-in solution. Even though I can run MuPDF in an [[EXWM]] buffer, the -integration in terms of searching and viewing attachments that comes with -=pdf-tools= makes for a much more pleasant experience. - -#+BEGIN_SRC elisp -(use-package pdf-tools - :config - (pdf-loader-install)) -#+END_SRC - -* dim +* Programming Tools -[[https://www.emacswiki.org/emacs/DelightedModes][Delight]] doesn't work for me, and [[https://github.com/myrjola/diminish.el][diminish]] is sadly lacking in the feature -department, so I'm choosing to clean up my modeline with dim. =use-package= -doesn't have an equivalent of =:diminish= or =:delight=, so the declarations occur -here. - -#+BEGIN_SRC elisp -(use-package dim - :config - (dim-minor-name 'visual-line-mode "") - (dim-minor-name 'ivy-mode "")) -#+END_SRC - -* dumb-jump +** dumb-jump Replace =xref= keybindings instead of using the default ones, since I'm nearly always using =dumb-jump= instead of a proper tag indexer. @@ -1677,21 +1656,7 @@ always using =dumb-jump= instead of a proper tag indexer. (dumb-jump-mode)) #+END_SRC -* helpful - -A wonderful improvement upon the vanilla =describe-.*= functions, showing source -code, keybindings, symbol properties, and more. - -#+BEGIN_SRC elisp -(use-package helpful - :bind (("C-h f" . helpful-callable) - ("C-h v" . helpful-variable) - ("C-h k" . helpful-key) - ("C-h C" . helpful-command) - ("C-c C-d" . helpful-at-point))) -#+END_SRC - -* company +** company Start suggesting completions ASAP. @@ -1713,7 +1678,7 @@ Use standard movement keys instead of those used for minibuffer next/previous. ("C-p" . #'company-select-previous))) #+END_SRC -* Flycheck +** Flycheck #+BEGIN_SRC elisp (use-package flycheck) @@ -1729,15 +1694,7 @@ I think tooltips are a little nicer than spitting errors into the echo area. (flycheck-mode . flycheck-pos-tip-mode)) #+END_SRC -* avy - -#+BEGIN_SRC elisp -(use-package avy - :bind - ("M-s" . avy-goto-char)) -#+END_SRC - -* Magit +** Magit #+BEGIN_SRC elisp (use-package magit @@ -1805,3 +1762,52 @@ Don't omit information when lists nest too deep. :init (setq eval-expression-print-level nil)) #+END_SRC + +Helpful is a wonderful improvement upon the vanilla =describe-.*= functions, +showing source code, keybindings, symbol properties, and more. + +#+BEGIN_SRC elisp +(use-package helpful + :bind (("C-h f" . helpful-callable) + ("C-h v" . helpful-variable) + ("C-h k" . helpful-key) + ("C-h C" . helpful-command) + ("C-c C-d" . helpful-at-point))) +#+END_SRC + +** Common Lisp + +SLIME is my preferred REPL for working with Common Lisp. + +#+BEGIN_SRC elisp +(use-package slime + :config + (setq inferior-lisp-program "/usr/bin/sbcl") + (setq slime-contribs '(slime-fancy))) +#+END_SRC + +** Scheme + +Configuration for using the [[https://wiki.call-cc.org/emacs#builtin-scheme-support][best Scheme implementation]]. + +#+BEGIN_SRC elisp +(use-package xscheme + :straight nil + :init + (setq scheme-program-name "csi -:c") +#+END_SRC + +Redefinition of =xscheme-default-command-line= so that '-emacs' is not passed to +=csi=, since it doesn't recognize the argument and complains about it. + +#+BEGIN_SRC elisp + :config + (defun xscheme-default-command-line () + (concat scheme-program-name + (if scheme-program-arguments + (concat " " scheme-program-arguments) + "") + (if scheme-band-name + (concat " -band " scheme-band-name) + "")))) +#+END_SRC -- cgit v1.3