[emacs] Fix module loading and keymappings

This commit is contained in:
2024-01-14 14:41:33 -05:00
parent e1c8b18635
commit 5fd1fc2b0e
3 changed files with 42 additions and 2 deletions

View File

@ -33,7 +33,19 @@
(:map evil-treemacs-state-map
"C-h" 'evil-window-left
"C-l" 'evil-window-right))
"C-l" 'evil-window-right)
:leader
(:prefix "f"
:desc "Find file in dotfiles" "t" #'+hlissner/find-in-dotfiles
:desc "Browse dotfiles" "T" #'+hlissner/browse-dotfiles)
(:prefix "b"
:desc "Black format buffer" "f" #'blacken-buffer
:desc "isort buffer" "I" #'py-isort-buffer
:desc "Links in buffer" "l" #'ace-link-org)
(:prefix "e"
:desc "Goto URL in eww" "e" #'eww
:desc "Search in eww" "w" #'eww-search-words))
(defun unfill-paragraph ()
"Takes a multi-line paragraph and makes it into a single line of text."
@ -51,7 +63,6 @@
(file-notify-rm-watch key))
file-notify-descriptors))
(setq frame-title-format
'(""
(:eval
@ -76,3 +87,17 @@
lsp-modeline-diagnostics-enable 1
lsp-completion-show-detail 1
lsp-file-watch-threshold nil)
;; check for hosts folder and find any init-HOSTNAME.el files in there and load them
(defvar host (substring (shell-command-to-string "hostname") 0 -1))
(defvar host-dir "~/.config/doom/hosts/")
(add-load-path! host-dir)
;;(let ((init-host-feature (intern (concat "init-" host ".el"))))
;; (load-file init-host-feature))
(defvar host-init (concat "~/.config/doom/hosts/init-" host ".el"))
(if (file-exists-p host-init)
(load-file host-init))
(load-file "~/.config/doom/+agenda-fix.el")