summaryrefslogtreecommitdiff
path: root/home/dots/.emacs
diff options
context:
space:
mode:
authorMarc Coquand <marc@mccd.space>2024-10-24 08:13:54 +0300
committerMarc Coquand <marc@mccd.space>2024-10-24 08:13:54 +0300
commitabe17b042ca23eb3fb4c759cc62214440691fb1f (patch)
treeca203e43df2c3a2188b723ab878177400ebc2987 /home/dots/.emacs
parentba51d8509f78361f3049900861f492e100116a8c (diff)
downloadguix-abe17b042ca23eb3fb4c759cc62214440691fb1f.tar.gz
guix-abe17b042ca23eb3fb4c759cc62214440691fb1f.tar.bz2
guix-abe17b042ca23eb3fb4c759cc62214440691fb1f.zip
.
Diffstat (limited to '')
-rw-r--r--home/dots/.emacs11
-rw-r--r--home/dots/.emacs.d/elisp/custom-keymaps.el (renamed from home/dots/.emacs.d/elisp/keymaps.el)0
2 files changed, 10 insertions, 1 deletions
diff --git a/home/dots/.emacs b/home/dots/.emacs
index ca901bc..dd9adfb 100644
--- a/home/dots/.emacs
+++ b/home/dots/.emacs
@@ -93,6 +93,12 @@
(exwm-input-set-key (kbd "C-<print>")
(lambda () (interactive)
(shell-command "scrot -s -F '/home/mccd/screenshots/%Y-%m-%d_$wx$h.png'")))
+ (exwm-input-set-key (kbd "<XF86MonBrightnessDown>")
+ (lambda () (interactive)
+ (shell-command "brightnessctl set 5%- 1> /dev/null")))
+ (exwm-input-set-key (kbd "<XF86MonBrightnessUp>")
+ (lambda () (interactive)
+ (shell-command "brightnessctl set +5% 1> /dev/null")))
(exwm-input-set-key (kbd "s-<SPC>")
(lambda (cmd) ;; s-&: Launch application.
(interactive (list (read-shell-command "$ ")))
@@ -400,7 +406,7 @@
(css-mode . (lambda ((interactive)
(setq-local tab-width 2)
(setq sgml-basic-offset 2
- indent-tabs-mode t))))))
+ indent-tabs-mode t))))
(html-mode . (lambda ()
(interactive)
(setq-local tab-width 2)
@@ -489,6 +495,9 @@
(define-key eglot-mode-map (kbd "C-c r") 'eglot-rename)
(define-key eglot-mode-map (kbd "C-c o") 'eglot-code-actions)
:hook
+ (css-mode . eglot-ensure)
+ (html-mode . eglot-ensure)
+ (javascript-mode . eglot-ensure)
(nix-mode . eglot-ensure)
(go-mode . eglot-ensure))
diff --git a/home/dots/.emacs.d/elisp/keymaps.el b/home/dots/.emacs.d/elisp/custom-keymaps.el
index 7c6d614..7c6d614 100644
--- a/home/dots/.emacs.d/elisp/keymaps.el
+++ b/home/dots/.emacs.d/elisp/custom-keymaps.el