diff options
| author | Nicholas Rodrigues Lordello <[email protected]> | 2023-09-14 01:11:27 +0200 |
|---|---|---|
| committer | Nicholas Rodrigues Lordello <[email protected]> | 2023-12-12 23:30:28 +0100 |
| commit | 453c97bb0cc63d19ef72fe6b43fd26cda80a21c4 (patch) | |
| tree | 850dca314365a03fe2645e797a87009e6790c042 | |
| parent | 0397dfa682606592d178eb3a69a7cda8496a00af (diff) | |
Some progress on Emacs 29 configuration changes
| -rw-r--r-- | config/emacs/early-init.el | 11 | ||||
| -rw-r--r-- | config/emacs/init.el | 22 | ||||
| -rw-r--r-- | config/emacs/macos.el | 3 | ||||
| -rw-r--r-- | config/emacs/sanemacs.el | 26 |
4 files changed, 31 insertions, 31 deletions
diff --git a/config/emacs/early-init.el b/config/emacs/early-init.el new file mode 100644 index 0000000..fd05197 --- /dev/null +++ b/config/emacs/early-init.el @@ -0,0 +1,11 @@ +;;; Go VROOM-VROOM +(setq gc-cons-threshold 10000000) + +;;; Configure package.el directories +(setq + package-user-dir "~/.cache/emacs/elpa/" + package-gnupghome-dir "~/.cache/emacs/elpa/gnupg") + +;;; Configure native-comp cache direactory +(when (boundp 'native-comp-eln-load-path) + (startup-redirect-eln-cache "~/.cache/emacs/eln-cache")) diff --git a/config/emacs/init.el b/config/emacs/init.el index 9713275..db1d953 100644 --- a/config/emacs/init.el +++ b/config/emacs/init.el @@ -1,18 +1,14 @@ (load "~/.config/emacs/sanemacs.el" nil t) (load "~/.config/emacs/gtd.el" nil t) +(load "~/.config/emacs/macos.el" nil t) + +(use-package which-key + :ensure t + :config (which-key-mode)) ;;; TODO(nlordell): -;;; 1. Setup `which-keys` for command discoverability -;;; 2. Move `eln-cache` using `startup-redirect-eln-cache` (v29) -;;; 3. Try out `meow` modal editing mode -;;; 4. Move bookmarks to `~/.cache` (v29) -;;; 5. Use built-in tree-sitter support (v29) -;;; 6. use built-in use-package package (v29) -;;; 7. Simplify GTD.el to match what I do in ~/WEEK.md -;;; 8. Setup dev-container support for Emacs -;;; 9. Emacs over devcontainers with TRAMP +;;; 1. Try out `meow` modal editing mode +;;; 2. Use built-in tree-sitter support (v29) +;;; 3. Simplify GTD.el to match what I do in ~/WEEK.md +;;; 4. Emacs over devcontainers/docker with TRAMP ;;; <https://happihacking.com/blog/posts/2023/dev-containers-emacs/> - -;;; Enable ligatures on macOS -(if (fboundp 'mac-auto-operator-composition-mode) - (mac-auto-operator-composition-mode)) diff --git a/config/emacs/macos.el b/config/emacs/macos.el new file mode 100644 index 0000000..e0d640b --- /dev/null +++ b/config/emacs/macos.el @@ -0,0 +1,3 @@ +;;; Enable ligatures +(if (fboundp 'mac-auto-operator-composition-mode) + (mac-auto-operator-composition-mode)) diff --git a/config/emacs/sanemacs.el b/config/emacs/sanemacs.el index afbac50..06098ac 100644 --- a/config/emacs/sanemacs.el +++ b/config/emacs/sanemacs.el @@ -1,5 +1,5 @@ ;;; -;;; Sanemacs <https://sanemacs.com> +;;; Customized Sanemacs <https://sanemacs.com> ;;; ;;; Customize Emacs @@ -9,7 +9,9 @@ (column-number-mode) (fset 'yes-or-no-p 'y-or-n-p) (setq + inhibit-startup-echo-area-message (user-login-name) inhibit-startup-screen t + initial-major-mode 'fundamental-mode initial-scratch-message "" sentence-end-double-space nil) (setq-default @@ -17,30 +19,18 @@ show-trailing-whitespace t tab-width 4) -;;; Write auto-saves and backups to `.cache` directory +;;; Write auto-saves, backups and bookmarks to `.cache` directory (setq auto-save-list-file-prefix "~/.cache/emacs/auto-save/" auto-save-file-name-transforms '((".*" "~/.cache/emacs/auto-save/" t)) backup-by-copying t backup-directory-alist '((".*" . "~/.cache/emacs/backup/")) + bookmark-default-file "~/.cache/emacs/bookmarks" create-lockfiles nil) -;;; Setup `package.el` -(require 'package) -(setq - package-enable-at-startup nil - package-user-dir "~/.cache/emacs/elpa/" - package-gnupghome-dir "~/.cache/emacs/elpa/gnupg") -(add-to-list 'package-archives - '("melpa" . "https://melpa.org/packages/")) -(unless package--initialized (package-initialize)) - -;;; Setup `use-package` -(unless (package-installed-p 'use-package) - (package-refresh-contents) - (package-install 'use-package)) -(eval-when-compile (require 'use-package)) -(setq use-package-always-ensure t) +;;; Configure TRAMP +(with-eval-after-load 'tramp-cache + (setq tramp-persistency-file-name "~/.cache/emacs/tramp")) ;;; Setup Modus theme (load-theme 'modus-vivendi) |
