(Emacs)~text and code changes

Just cleaned up some links and descriptions that didn't really make sense.

Also added some defers and cleaned up some hooks.
This commit is contained in:
2021-07-28 19:00:38 +01:00
parent c8ae4683a0
commit bee2255253

View File

@@ -1017,6 +1017,7 @@ it's useful for presentations.
Hl-line is a Hl-line is a
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package hl-line (use-package hl-line
:defer t
:hook (text-mode-hook . hl-line-mode)) :hook (text-mode-hook . hl-line-mode))
#+end_src #+end_src
** Recentf ** Recentf
@@ -1032,13 +1033,11 @@ the projectile command map for quick access.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package projectile (use-package projectile
:after evil :after evil
:hook (prog-mode-hook . projectile-mode) :hook (emacs-startup-hook . projectile-mode)
: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 -Re -f \"%s\" %s \"%s\""))
:config
(projectile-mode))
#+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.
@@ -1160,6 +1159,7 @@ most repositories nowadays.
*** rg *** rg
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package rg (use-package rg
:defer t
:commands (+rg/search-in-new-frame) :commands (+rg/search-in-new-frame)
:general :general
(leader (leader
@@ -1200,7 +1200,7 @@ initial startup screen in default Emacs.
"q" (proc (interactive) (kill-this-buffer))) "q" (proc (interactive) (kill-this-buffer)))
:init :init
(setq dashboard-banner-logo-title "Oreomacs" (setq dashboard-banner-logo-title "Oreomacs"
dashboard-center-content nil dashboard-center-content t
dashboard-set-init-info t dashboard-set-init-info t
dashboard-startup-banner (no-littering-expand-etc-file-name "dashboard/logo.png") dashboard-startup-banner (no-littering-expand-etc-file-name "dashboard/logo.png")
dashboard-set-footer t dashboard-set-footer t
@@ -1913,11 +1913,10 @@ highlighting.
("WAIT" . "#00CC00")))) ("WAIT" . "#00CC00"))))
#+end_src #+end_src
** PDF ** PDF
PDFs are a great format for (somewhat) immutable text and reports with PDFs are a format for (somewhat) immutable text and reports with great
great formatting options. Though Emacs isn't really the premier formatting options. Though Emacs isn't my favourite application for
solution for viewing PDFs (I highly recommend [[https://pwmt.org/projects/zathura/][Zathura]]), similar to viewing PDFs (I highly recommend [[https://pwmt.org/projects/zathura/][Zathura]]), similar to most things with
most things with Emacs, having a PDF viewer builtin can be a very Emacs, having a PDF viewer builtin can be a very useful asset.
useful asset.
For example if I were editing an org document which I was eventually For example if I were editing an org document which I was eventually
compiling into a PDF, my workflow would be much smoother with a PDF compiling into a PDF, my workflow would be much smoother with a PDF
@@ -1962,9 +1961,9 @@ use the current buffer?) but it works out.
(setq sql-display-sqli-buffer-function nil)) (setq sql-display-sqli-buffer-function nil))
#+end_src #+end_src
** Ada ** Ada
Check out [[file:ada-mode.el][ada-mode*]], my custom ada-mode that replaces the default one. Check out [[file:elisp/ada-mode.el][ada-mode*]], my custom ada-mode that replaces the default one.
This mode just colourises stuff, and uses eglot to do the heavy This mode just colourises stuff, and uses eglot to do the important
lifting. stuff.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(load-file (concat user-emacs-directory "elisp/ada-mode.el")) (load-file (concat user-emacs-directory "elisp/ada-mode.el"))
@@ -2042,8 +2041,7 @@ Tons of variables for org-mode, including a ton of latex ones.
))) )))
#+end_src #+end_src
*** Org Core Configuration *** Org Core Configuration
Hooks, prettify-symbols and my =+org/swiper-goto= to replace the Hooks, prettify-symbols and records for auto insertion.
vanilla =org-goto=. Also records for auto insertion.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package org (use-package org
:hook :hook