aboutsummaryrefslogtreecommitdiffstats
path: root/emacs/.config
diff options
context:
space:
mode:
authorGravatar Tom Willemse2026-06-10 16:52:56 -0700
committerGravatar Tom Willemse2026-06-10 16:55:34 -0700
commitcb73a736736c8091697f93e62c31502bed9ccf80 (patch)
treea9b9c381f59517e9d747c37c1ccc416644b37a24 /emacs/.config
parenta61c4330a203ff71b0418e6638925754b4d16d54 (diff)
downloadnew-dotfiles-cb73a736736c8091697f93e62c31502bed9ccf80.tar.gz
new-dotfiles-cb73a736736c8091697f93e62c31502bed9ccf80.zip
Update Emacs config
This is mainly used by my work machine at the moment, but that should change soon.
Diffstat (limited to 'emacs/.config')
-rw-r--r--emacs/.config/emacs/.gitignore1
-rw-r--r--emacs/.config/emacs/init.org92
2 files changed, 0 insertions, 93 deletions
diff --git a/emacs/.config/emacs/.gitignore b/emacs/.config/emacs/.gitignore
deleted file mode 100644
index 509e059..0000000
--- a/emacs/.config/emacs/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-init.el \ No newline at end of file
diff --git a/emacs/.config/emacs/init.org b/emacs/.config/emacs/init.org
deleted file mode 100644
index 20ddcbb..0000000
--- a/emacs/.config/emacs/init.org
+++ /dev/null
@@ -1,92 +0,0 @@
-#+TITLE: Emacs Configuration
-
-First, lexical binding must be enabled. This is better for performance, but also makes variable binding behave more as expected, and allows the creation of closures.
-
-#+begin_src emacs-lisp :padline no
- ;; -*- lexical-binding: t; -*-
-#+end_src
-
-Store all auto-save files in =$XDG_DATA_HOME/emacs/auto-save-list= to prevent them from clogging up =$XDG_CONFIG_HOME/emacs/=. The XDG specification says that if =XDG_DATA_HOME= hasn't been specified a default of =~/.local/share= should be used.
-
-#+begin_src emacs-lisp
- (add-to-list
- 'auto-save-file-name-transforms
- `(,(rx (zero-or-more any))
- ,(concat (or (getenv "XDG_DATA_HOME")
- (expand-file-name "~/.local/share"))
- "/emacs/auto-save-list")
- t)
- t)
-#+end_src
-
-Use =hunspell= instead of the default =aspell=. Hunspell is used by LibreOffice and other programs too. So far (at least through Emacs) it doesn't recognize the =’= as an apostrophe and I have to use ='= in org-mode if I want spell checking to accept word contractions in English.
-
-#+begin_src emacs-lisp
- (eval-when-compile (require 'ispell))
- (with-eval-after-load 'ispell
- (setq ispell-program-name "hunspell"
- ispell-really-hunspell t))
-#+end_src
-
-Electric quote uses pretty quoting characters =’=, =‘=, =”=, and =“= instead of ='= and ="=, but when I'm in the middle of a word I don't want to use =’= (right single quotation mark), but ='= (apostrophe), which provides better results with spellchecking. So here is a function that checks whether the character before the previous is a word character.
-
-#+begin_src emacs-lisp
- (defun oni-in-word-p ()
- "Check whether the character just typed was part of a word."
- (save-excursion
- (backward-char)
- (looking-back (rx word) (1- (point)))))
-#+end_src
-
-Now that I can check whether or not I'm typing a word, I can tell =electric-quote-mode= not to use =’= in that case.
-
-#+begin_src emacs-lisp
- (with-eval-after-load 'electric
- (add-hook 'electric-quote-inhibit-functions #'oni-in-word-p))
-#+end_src
-
-So now that that's settled, I should be writing ='= in words like “shouldn't'' and =’= otherwise. And spellchecking should work just fine.
-
-Add MELPA to package archives, this lets me install more packages.
-
-#+begin_src emacs-lisp
- (use-package package
- :config
- (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t))
-#+end_src
-
-* Docker
-
-I need to use Docker for some projects at work.
-
-#+begin_src emacs-lisp
- (use-package dockerfile-mode
- :ensure t)
-#+end_src
-
-* PHP
-
-I currently develop in PHP.
-
-#+begin_src emacs-lisp
- (use-package php-mode
- :ensure t)
-#+end_src
-
-* Magit
-
-GIT.
-
-#+begin_src emacs-lisp
- (use-package magit
- :ensure t)
-#+end_src
-
-* Lua mode
-
-Lua is mainly used by wezterm right now.
-
-#+begin_src emacs-lisp
- (use-package lua-mode
- :ensure t)
-#+end_src