aboutsummaryrefslogtreecommitdiff
path: root/.config/emacs
diff options
context:
space:
mode:
authorJack Jamison <jjamison@litecoms.com>2026-07-30 15:03:29 -0400
committerJack Jamison <jjamison@litecoms.com>2026-07-30 15:03:29 -0400
commitf220a0ed999a06d43eaead3b6a86aaf36910d6c6 (patch)
tree810686041b410b943f321639cd354e78a6190614 /.config/emacs
parentd7fb76f6e7d942740c48016864de8b65588e336c (diff)
lots of great improvements
Diffstat (limited to '.config/emacs')
-rw-r--r--.config/emacs/files.el6
-rw-r--r--.config/emacs/init.el10
-rw-r--r--.config/emacs/minibuffer.el7
-rw-r--r--.config/emacs/misc.el37
-rw-r--r--.config/emacs/style.el17
-rw-r--r--.config/emacs/windows.el24
6 files changed, 72 insertions, 29 deletions
diff --git a/.config/emacs/files.el b/.config/emacs/files.el
index d912e02..a60c5e5 100644
--- a/.config/emacs/files.el
+++ b/.config/emacs/files.el
@@ -1,9 +1,9 @@
(use-package dired
:commands (dired)
:hook ((dired-mode . dired-hide-details-mode)
- (dired-mode . (lambda ()
- (hl-line-mode)
- (setq-local cursor-type nil))))
+ (dired-mode . hl-line-mode)
+ (dired-mode . auto-revert-mode)
+ (dired-mode . (lambda () (setq-local cursor-type nil))))
:config
(setq dired-recursive-copies 'always)
(setq dired-recursive-deletes 'always)
diff --git a/.config/emacs/init.el b/.config/emacs/init.el
index e6b85e1..b79a0ae 100644
--- a/.config/emacs/init.el
+++ b/.config/emacs/init.el
@@ -43,10 +43,10 @@
(package-refresh-contents))
;; don't complain about bytecomp errors in a window
-(add-to-list 'display-buffer-alist
- '("\\`\\*\\(Warnings\\|Compile-Log\\)\\*\\'"
- (display-buffer-no-window)
- (allow-no-window . t)))
+;; (add-to-list 'display-buffer-alist
+;; '("\\`\\*\\(Warnings\\|Compile-Log\\)\\*\\'"
+;; (display-buffer-no-window)
+;; (allow-no-window . t)))
;; load my config files
(defun loadc (file) (load (locate-user-emacs-file file)))
@@ -56,9 +56,11 @@
(loadc "completion-at-point.el")
(loadc "files.el")
(loadc "misc.el")
+(loadc "windows.el")
;; (loadc "ide.el")
;; (loadc "evil.el")
;; (loadc "lang.el")
+;; todo: terminal, capfs
;; skipped: diminish, ansi color and rainbow
;; delimiters, evil, rainbow,
diff --git a/.config/emacs/minibuffer.el b/.config/emacs/minibuffer.el
index b51fbef..6e6ad05 100644
--- a/.config/emacs/minibuffer.el
+++ b/.config/emacs/minibuffer.el
@@ -33,9 +33,10 @@
:ensure t
:hook (after-init . marginalia-mode))
-;; (use-package stillness
-;; :demand t
-;; :vc (:url "https://github.com/neeasade/stillness-mode.el" :branch "main"))
+(use-package stillness
+ :demand t
+ :vc (:url "https://github.com/neeasade/stillness-mode.el" :rev :newest)
+ :hook (after-init . stillness-mode))
;; sorting and history
diff --git a/.config/emacs/misc.el b/.config/emacs/misc.el
index a4ab07d..276ee88 100644
--- a/.config/emacs/misc.el
+++ b/.config/emacs/misc.el
@@ -37,13 +37,36 @@
(add-hook 'prog-mode 'editorconfig-apply)
;; proj
-;; (use-package proj
+(use-package proj
+ :vc ( :url "https://github.com/NAHTAIV3L/proj.el" :rev :newest )
+ :demand
+ :config
+ (global-set-key (kbd "C-x b") `proj-switch-to-buffer)
+ (global-set-key (kbd "C-c b") `switch-to-buffer)
+ (global-set-key (kbd "C-x k") `proj-kill-buffer)
+ (global-set-key (kbd "C-c k") `kill-buffer)
+ (setq proj-locations '(("~/development/" . 1) ("~/opt/" . 1) ("~/dotfiles/" . 0) ("~/dotfiles/.config/emacs/lisp/" . 1))
+ proj-grep-function 'consult-ripgrep))
+
+;; (use-package compile-angel
;; :demand t
;; :config
-;; (global-set-key (kbd "C-x b") `proj-switch-to-buffer)
-;; (global-set-key (kbd "C-c b") `switch-to-buffer)
-;; (global-set-key (kbd "C-x k") `proj-kill-buffer)
-;; (global-set-key (kbd "C-c k") `kill-buffer)
-;; (setq proj-locations '(("~/development/" . 1) ("~/opt/" . 1) ("~/dotfiles/" . 0) ("~/dotfiles/.config/emacs/lisp/" . 1))
-;; proj-grep-function 'consult-ripgrep))
+;; (setq compile-angel-verbose t)
+
+;; ;; The following directive prevents compile-angel from compiling your init
+;; ;; files. If you choose to remove this push to `compile-angel-excluded-path-suffixes'
+;; ;; and compile your pre/post-init files, ensure you understand the
+;; ;; implications and thoroughly test your code. For example, if you're using
+;; ;; the `use-package' macro, you'll need to explicitly add:
+;; ;; (eval-when-compile (require 'use-package))
+;; ;; at the top of your init file.
+;; (push "/init.el" compile-angel-excluded-path-suffixes)
+;; (push "/early-init.el" compile-angel-excluded-path-suffixes)
+;; (push ".config/emacs/[^/]*.el" compile-angel-excluded-path-regexps)
+
+;; ;; Uncomment the line below to compile automatically when an Elisp file is saved
+;; ;; (add-hook 'emacs-lisp-mode-hook #'compile-angel-on-save-local-mode)
+;; ;; A global mode that compiles .el files when they are loaded
+;; ;; using `load' or `require'.
+;; (compile-angel-on-load-mode 1))
diff --git a/.config/emacs/style.el b/.config/emacs/style.el
index 91c2a10..69a99a0 100644
--- a/.config/emacs/style.el
+++ b/.config/emacs/style.el
@@ -1,17 +1,6 @@
-;; get rid of ui
-(menu-bar-mode -1)
-(scroll-bar-mode -1)
-(tool-bar-mode -1)
-
+;; turn off blink cursor
(blink-cursor-mode -1)
-;; fonts - https://github.com/thep0y/monaco-nerd-font/releases/tag/v0.2.2
-(let ((mono-spaced-font "Monaco Nerd Font Mono")
- (proportionately-spaced-font "MonacoLigaturized Nerd Font"))
- (set-face-attribute 'default nil :family mono-spaced-font :height 100)
- (set-face-attribute 'fixed-pitch nil :family mono-spaced-font :height 1.0)
- (set-face-attribute 'variable-pitch nil :family proportionately-spaced-font :height 1.0))
-
;; theme
(load-theme 'wombat)
(custom-set-faces
@@ -24,6 +13,10 @@
'(font-lock-string-face ((t (:foreground "#98dc5f"))))
)
+;; ansi color
+(use-package ansi-color
+ :hook (compilation-filter . ansi-color-compilation-filter))
+
;; icons
(use-package nerd-icons
diff --git a/.config/emacs/windows.el b/.config/emacs/windows.el
new file mode 100644
index 0000000..c44c93f
--- /dev/null
+++ b/.config/emacs/windows.el
@@ -0,0 +1,24 @@
+;; todo - check out shackle
+;; maybe I want to support a two popper buffers (extra buffer + compilation dir)
+
+;; todo - function to switch to a buffer as a popper buffer
+;; todo - function to switch to a popup with completing read
+
+(use-package popper
+ :ensure t
+ :bind (("C-c w" . popper-toggle)
+ ("C-c C-w" . popper-cycle)
+ ("C-M-`" . popper-toggle-type))
+ :custom
+ (popper-display-control 'nil)
+ (popper-reference-buffers
+ '("\\*Messages\\*"
+ "Output\\*$"
+ "\\*Async Shell Command\\*"
+ help-mode
+ helpful-mode
+ compilation-mode
+ Man-mode))
+ :init
+ (popper-mode 1)
+ (popper-echo-mode -1))