font, langtool and fixes

This commit is contained in:
Chris Cochrun 2023-05-18 17:03:25 -05:00
parent 567eecf76c
commit bafc8e635b
2 changed files with 55 additions and 56 deletions

View file

@ -13,6 +13,17 @@
- [[#keybindings][Keybindings]]
- [[#org-mode][Org Mode]]
- [[#emoji][Emoji]]
- [[#undo-tree][Undo-Tree]]
- [[#undo-fu][Undo-Fu]]
- [[#better-ui][Better UI]]
- [[#eww][EWW]]
- [[#completion][Completion]]
- [[#devdocs][Devdocs]]
- [[#yasnippet][YASnippet]]
- [[#tempel][Tempel]]
- [[#projectile][Projectile]]
- [[#httpd][HTTPD]]
- [[#navigation][Navigation]]
- [[#early-init][Early Init]]
* Init
@ -67,9 +78,9 @@ In order to have this config work on both my desktop with regular joe-schmoe mon
(defun chris/set-font-faces ()
"Set the faces for our fonts"
(message "Setting faces!")
(set-face-attribute 'default nil :font "VictorMono Nerd Font"
(set-face-attribute 'default nil :font "IosevkaTerm Nerd Font"
:height chris/default-font-size)
(set-face-attribute 'fixed-pitch nil :font "VictorMono Nerd Font"
(set-face-attribute 'fixed-pitch nil :font "IosevkaTerm Nerd Font"
:height chris/default-font-size)
(set-face-attribute 'variable-pitch nil :font "Noto Sans"
:height (+ chris/default-font-size (/ chris/default-font-size 12))
@ -253,29 +264,25 @@ Let's make parens and other delimiters easier to tell apart by making nested one
#+begin_src emacs-lisp
(use-package smartparens
:defer 1
:config
(smartparens-global-mode +1))
#+end_src
#+begin_src emacs-lisp
(use-package aggressive-indent
:defer 1
:config
(aggressive-indent-mode -1))
#+end_src
#+begin_src emacs-lisp
(use-package adaptive-wrap
:defer t)
(use-package adaptive-wrap)
#+end_src
#+begin_src emacs-lisp
(use-package which-key
:config
(setq which-key-idle-delay 0.3)
(which-key-mode)
:defer 1)
(which-key-mode))
#+end_src
** Fix NixOS
@ -546,8 +553,6 @@ Let's start by creating a self contained function of what I'd like started on ev
(visual-fill-column-mode +1)
(display-line-numbers-mode -1)
(variable-pitch-mode +1)
(languagetool-server-start)
(languagetool-server-mode +1)
(setq visual-fill-column-width 100
visual-fill-column-center-text t)
@ -657,7 +662,7 @@ This is the use-package definition with a lot of customization. Need to setup au
Part of this config includes some special capture templates for my work as a youth minister. I create lessons through both org-mode and org-roam capture templates. The first part comes from org-roam, then the next is org-mode.
#+begin_src emacs-lisp
(use-package org
:defer 1
:defer t
:config
(setq org-startup-indented t
org-edit-src-content-indentation 0
@ -1673,7 +1678,7 @@ Or maybe I'll use =emojify=.
"ie" '(emojify-insert-emoji :which-key "insert emoji")))
#+end_src
*** Undo-Tree
** Undo-Tree
I no longer use this since I primarily use Emacs 28 across my machines and have used Emacs's built in undo-redo.
#+begin_src emacs-lisp :tangle no
(use-package undo-tree
@ -1687,7 +1692,7 @@ I no longer use this since I primarily use Emacs 28 across my machines and have
"k" 'undo-tree-visualize-undo))
#+end_src
*** Undo-Fu
** Undo-Fu
The same applies here as did =undo-tree= I no longer use this since I primarily use Emacs 28 across my machines and have used Emacs's built in undo-redo.
#+begin_src emacs-lisp :tangle no
(use-package undo-fu
@ -1696,8 +1701,8 @@ The same applies here as did =undo-tree= I no longer use this since I primarily
(setq evil-undo-system 'undo-fu))
#+end_src
*** Better UI
**** Olivetti
** Better UI
*** Olivetti
#+begin_src emacs-lisp :tangle no
(use-package olivetti
:config
@ -1705,13 +1710,13 @@ The same applies here as did =undo-tree= I no longer use this since I primarily
olivetti-minimum-body-width 100))
#+end_src
**** Revert all buffers
*** Revert all buffers
#+BEGIN_SRC emacs-lisp
(global-auto-revert-mode 1)
(setq global-auto-revert-non-file-buffers t)
#+END_SRC
**** Visual-Fill-Line-Mode
*** Visual-Fill-Line-Mode
Visual fill column does a lot of the same as olivetti, but works with visual line mode better.
#+begin_src emacs-lisp
(use-package visual-fill-column
@ -1720,13 +1725,13 @@ Visual fill column does a lot of the same as olivetti, but works with visual lin
(setq visual-fill-column-width 100
visual-fill-column-center-text t))
#+end_src
**** TOC-ORG
*** TOC-ORG
#+begin_src emacs-lisp
(use-package toc-org
:after org)
#+end_src
**** Lin and Pulsar
*** Lin and Pulsar
These two packages created by Prot are interesting to me and may help to make sure I do not loose my place in emacs so much.
#+begin_src emacs-lisp :tangle no
(use-package lin
@ -1805,7 +1810,7 @@ These two packages created by Prot are interesting to me and may help to make su
(add-hook 'imenu-after-jump-hook #'pulsar-reveal-entry))
#+end_src
*** EWW
** EWW
Builtin webbrowser for emacs. Trying it out as a text only browser for things.
#+begin_src emacs-lisp
@ -1857,10 +1862,10 @@ Builtin webbrowser for emacs. Trying it out as a text only browser for things.
"gV" 'chris/eww-video-dl)
#+end_src
*** Completion
** Completion
My completion framework is a combination of packages so that everything remains seperate and lightweight.
**** SELECTRUM
*** SELECTRUM
I prefer selectrum over Ivy or Helm for completions. It is using the basic completing read system and therefore it is more inline with basic emacs. Also, let's add prescient to be able to filter selectrum well. We'll add some keybindings too for easier navigation on the home row.
#+BEGIN_SRC emacs-lisp :tangle no
@ -1970,7 +1975,7 @@ This is similar but using mini-frame. Mini-frame works well, but not if using ex
(apply f args)))
#+END_SRC
**** VERTICO
*** VERTICO
Vertico is an alternative to Selectrum. Maybe using it will give me an even better experience over selectrum.
#+BEGIN_SRC emacs-lisp
@ -2023,7 +2028,7 @@ Vertico is an alternative to Selectrum. Maybe using it will give me an even bett
(setq enable-recursive-minibuffers t))
#+END_SRC
**** CONSULT
*** CONSULT
Consult has a lot of nice functions like Ivy's Counsel functions (enhanced searching functions), lets set some of them in the keymap so they are easily used.
#+begin_src emacs-lisp
(use-package consult
@ -2069,7 +2074,7 @@ Consult has a lot of nice functions like Ivy's Counsel functions (enhanced searc
"sb" 'consult-eglot-symbols))
#+end_src
**** MARGINALIA
*** MARGINALIA
Marginalia makes for some great decoration to our minibuffer completion items. Works great with Selectrum which does not have this out of the box.
#+begin_src emacs-lisp
@ -2108,7 +2113,7 @@ Along with Marginalia, let's add in icons.
#+end_src
**** Embark
*** Embark
Embark or do something.
#+BEGIN_SRC emacs-lisp
(use-package embark
@ -2162,12 +2167,12 @@ targets."
(use-package embark-consult)
#+END_SRC
**** WGREP
*** WGREP
#+begin_src emacs-lisp
(use-package wgrep)
#+end_src
**** Company
*** Company
#+begin_src emacs-lisp :tangle no
(use-package company
:config
@ -2192,7 +2197,7 @@ targets."
:after company)
#+end_src
**** Corfu
*** Corfu
Trying out corfu instead of company
#+BEGIN_SRC emacs-lisp
(use-package corfu
@ -2303,7 +2308,7 @@ Trying out corfu instead of company
(setq cape-dabbrev-min-length 4)
)
#+END_SRC
**** kind-icon
*** kind-icon
Kind icon adds icons to corfu
#+begin_src emacs-lisp
(use-package kind-icon
@ -2315,7 +2320,7 @@ Kind icon adds icons to corfu
(add-to-list 'corfu-margin-formatters #'kind-icon-margin-formatter))
#+end_src
**** Devdocs
** Devdocs
Devdocs.io is a pretty great place to see documentation on nearly any developer technology. Devdocs.el will bring all that documentation right inside Emacs.
#+begin_src emacs-lisp
(use-package devdocs
@ -2326,7 +2331,7 @@ Devdocs.io is a pretty great place to see documentation on nearly any developer
"hd" 'devdocs-lookup))
#+end_src
*** YASnippet
** YASnippet
YASnippet is a templating system. It's powerful.
#+begin_src emacs-lisp :tangle no
(use-package yasnippet
@ -2335,7 +2340,7 @@ YASnippet is a templating system. It's powerful.
(yas-global-mode 1))
#+end_src
*** Tempel
** Tempel
Tempel is another templating system. Also perhaps even more powerful with it's elisp way of creating snippets, but elisp is tougher to work around. But, I'll give it a try.
#+BEGIN_SRC emacs-lisp
(use-package tempel
@ -2370,7 +2375,7 @@ Tempel is another templating system. Also perhaps even more powerful with it's e
)
#+END_SRC
*** Projectile
** Projectile
I'm going to use projectile to keep my projects inline.
#+begin_src emacs-lisp
(use-package projectile
@ -2387,15 +2392,15 @@ I'm going to use projectile to keep my projects inline.
"fP" 'project-switch-project))
#+end_src
*** HTTPD
** HTTPD
In order to view created websites, I'll use =simple-httpd= to get a web server running in emacs for preview.
#+BEGIN_SRC emacs-lisp
(use-package simple-httpd
:ensure t)
#+END_SRC
*** Navigation
**** Avy
** Navigation
*** Avy
Avy provides a lot of functions to search through the current buffer. Most of the time I use evil or consult functions to find what I'm looking for, but avy provides a lot of small movements that are more useful for visible movements.
#+begin_src emacs-lisp
(use-package avy
@ -2415,7 +2420,7 @@ These are some evil bindings to avy.
"gl" 'avy-goto-line))
#+end_src
**** Ace-Link
*** Ace-Link
Ace link provides an avy like search for links. Upon using the keybindings presented it opens the url.
#+begin_src emacs-lisp
(use-package ace-link
@ -2575,7 +2580,7 @@ Since I like to make my window manager handle a lot of the window management, I
:config
(format-all-mode +1)
(setq format-all-formatters '("Emacs Lisp" emacs-lisp))
:defer 1)
:defer t)
#+end_src
*** Languages
@ -3665,7 +3670,7 @@ Let's use pdf-tools for a lot better interaction with pdfs.
(use-package eaf
:straight (:host github :repo "emacs-eaf/emacs-application-framework"
:files ("*.el" "*.py" "core" "*.json" "app" "*"))
:defer 1
:defer t
:custom
(eaf-browser-dark-mode t)
(eaf-browser-continue-where-left-off t)
@ -3986,13 +3991,13 @@ Hass is a package to control Home Assistant. I use HA so... I like HASS.
I like to keep my passwords in password-store for a very unixy way of doing things.
#+begin_src emacs-lisp
(use-package auth-source-pass
:defer 1
:defer t
:config (auth-source-pass-enable))
#+end_src
#+begin_src emacs-lisp
(use-package pass
:defer 1)
:defer t)
#+end_src
#+begin_src emacs-lisp

22
init.el
View file

@ -29,9 +29,9 @@
(defun chris/set-font-faces ()
"Set the faces for our fonts"
(message "Setting faces!")
(set-face-attribute 'default nil :font "VictorMono Nerd Font"
(set-face-attribute 'default nil :font "IosevkaTerm Nerd Font"
:height chris/default-font-size)
(set-face-attribute 'fixed-pitch nil :font "VictorMono Nerd Font"
(set-face-attribute 'fixed-pitch nil :font "IosevkaTerm Nerd Font"
:height chris/default-font-size)
(set-face-attribute 'variable-pitch nil :font "Noto Sans"
:height (+ chris/default-font-size (/ chris/default-font-size 12))
@ -130,23 +130,19 @@
:hook (prog-mode . rainbow-delimiters-mode))
(use-package smartparens
:defer 1
:config
(smartparens-global-mode +1))
(use-package aggressive-indent
:defer 1
:config
(aggressive-indent-mode -1))
(use-package adaptive-wrap
:defer t)
(use-package adaptive-wrap)
(use-package which-key
:config
(setq which-key-idle-delay 0.3)
(which-key-mode)
:defer 1)
(which-key-mode))
(setenv "WAYLAND_DISPLAY" (if (string= (getenv "XDG_CURRENT_DESKTOP") "Hyprland")
"wayland-1"
@ -347,8 +343,6 @@
(visual-fill-column-mode +1)
(display-line-numbers-mode -1)
(variable-pitch-mode +1)
(languagetool-server-start)
(languagetool-server-mode +1)
(setq visual-fill-column-width 100
visual-fill-column-center-text t)
@ -453,7 +447,7 @@ much faster. The hope is to also make this a faster version of imenu."
(consult-imenu))
(use-package org
:defer 1
:defer t
:config
(setq org-startup-indented t
org-edit-src-content-indentation 0
@ -1977,7 +1971,7 @@ targets."
:config
(format-all-mode +1)
(setq format-all-formatters '("Emacs Lisp" emacs-lisp))
:defer 1)
:defer t)
(defvar read-symbol-positions-list nil)
(add-to-list 'comint-output-filter-functions 'ansi-color-process-output)
@ -3037,11 +3031,11 @@ interfere with the default `bongo-playlist-buffer'."
"ot" 'transmission))
(use-package auth-source-pass
:defer 1
:defer t
:config (auth-source-pass-enable))
(use-package pass
:defer 1)
:defer t)
(use-package password-store
:after pass