fixing meow and leader stuff

This commit is contained in:
Matt Nish-Lapidus 2025-02-26 22:11:09 -05:00
parent 80e2350519
commit 57d47702cd
13 changed files with 327 additions and 750 deletions

View file

@ -12,11 +12,7 @@
;; accept. For example:
(setq doom-font (font-spec :family "JetBrains Mono" :size 19))
(setq fancy-splash-image (concat doom-user-dir "splash.png"))
;; (setq doom-theme 'doom-monokai-pro)
(setq doom-theme 'doom-one)
;; (setq doom-theme 'doom-tomorrow-night-bright)
;; (doom-themes-treemacs-config)
(setq +doom-dashboard-pwd-policy nil)
@ -74,10 +70,6 @@
;; (setq default-frame-alist '( (left . 0) (top . 0) (height . 48) (width . 160)))
;; some global settings
;; (setq tab-always-indent t) ; don't autocomplete with tab
(+global-word-wrap-mode +1) ; default to soft word wrap
(delete-selection-mode 1) ; delete stuff!
(setq delete-active-region t) ; delete selected stuff!
(setq shell-file-name (executable-find "bash"))
(setq dired-vc-rename-file t) ; renaming and changing files in dired now integrates with magit
@ -86,7 +78,7 @@
(setq-default explicit-shell-file-name (executable-find "fish"))
(setq vterm-kill-buffer-on-exit t)
(after! meow
(meow-vterm-enable)))
(meow-vterm-enable)))
;; remove org agenda from the splash screen
(assoc-delete-all "Open org-agenda" +doom-dashboard-menu-sections)
@ -120,8 +112,8 @@
(global-so-long-mode 1)
(after! parinfer-rust-mode
(setq parinfer-rust-auto-download nil)
(setq parinfer-rust-preferred-mode "smart"))
(setq parinfer-rust-auto-download nil)
(setq parinfer-rust-preferred-mode "smart"))
(setq dap-ui-variable-length 200)
@ -209,9 +201,9 @@
(defun cl-patterns-helpers-load ()
(interactive)
(sly-eval-async '(cl:namestring (asdf:system-source-directory (asdf:find-system 'cl-patterns)))
(lambda (path)
(load (concat path "res/emacs/cl-patterns-helpers") nil nil nil t)
(load (concat path "res/emacs/cl-patterns-skeletons") nil nil nil t)))
(lambda (path)
(load (concat path "res/emacs/cl-patterns-helpers") nil nil nil t)
(load (concat path "res/emacs/cl-patterns-skeletons") nil nil nil t)))
;; (define-key sly-mode-map (kbd "C-c p") 'cl-patterns-play-or-end-context-or-select-pdef)
;; (define-key sly-mode-map (kbd "C-c P") 'cl-patterns-play-or-stop-context-or-select-pdef)
;; (define-key sly-mode-map (kbd "C-c s") 'cl-patterns-stop-all)
@ -220,41 +212,6 @@
(set-popup-rule! "*sly-description*" :side 'right :size '0.52)
(use-package! ajrepl
:after janet-mode
:config
(add-hook 'a-janet-mode-hook
#'ajrepl-interaction-mode))
(use-package! nix-mode
:after lsp-mode
:ensure t
:hook
(nix-mode . lsp-deferred) ;; So that envrc mode will work
:custom
(lsp-disabled-clients '((nix-mode . nix-nil))) ;; Disable nil so that nixd will be used as lsp-server
:config
(setq lsp-nix-nixd-server-path "nixd"
lsp-nix-nixd-formatting-command [ "alejandra"]
lsp-nix-nixd-nixpkgs-expr "import (builtins.getFlake \"/home/emenel/source/nixos-config/\").inputs.nixpkgs { } "
lsp-nix-nixd-nixos-options-expr "(builtins.getFlake \"/home/emenel/source/nixos-config/\").nixosConfigurations.mnd.options"))
(after! lsp-mode
(setq lsp-signature-render-documentation nil)
(lsp-register-client
(make-lsp-client :new-connection (lsp-stdio-connection "nixd")
:major-modes '(nix-mode)
:priority 0
:server-id 'nixd))
(add-to-list 'lsp-language-id-configuration '(a-janet-mode . "janet"))
(lsp-register-client
(make-lsp-client :new-connection (lsp-stdio-connection "janet-lsp")
:activation-fn (lsp-activate-on "janet")
:server-id 'janet-ls)))
(after! lisp-markup
(add-hook! 'lisp-mode 'lisp-markup-minor-mode))
(add-to-list 'auto-mode-alist '("\\.lsx\\'" . lisp-mode))
@ -276,25 +233,20 @@
(add-hook! 'gcode-mode-hook 'eldoc-mode))
(use-package!
tramp
:defer t
:config
;; To “turn off” the backup feature for remote files and stop TRAMP from saving to the backup directory.
;; See https://www.gnu.org/software/tramp/#Auto_002dsave-File-Lock-and-Backup
(add-to-list 'backup-directory-alist
(cons tramp-file-name-regexp nil))
(customize-set-variable 'tramp-backup-directory-alist backup-directory-alist)
(setq backup-enable-predicate
(lambda (name) nil)))
tramp
:defer t
:config
;; To “turn off” the backup feature for remote files and stop TRAMP from saving to the backup directory.
;; See https://www.gnu.org/software/tramp/#Auto_002dsave-File-Lock-and-Backup
(add-to-list 'backup-directory-alist
(cons tramp-file-name-regexp nil))
(customize-set-variable 'tramp-backup-directory-alist backup-directory-alist)
(setq backup-enable-predicate
(lambda (name) nil)))
;; override aggressive key shortcuts for alt-l/r
(use-package! drag-stuff
:defer t
:init
(map! "<M-up>" #'drag-stuff-up
"<M-down>" #'drag-stuff-down
"<M-left>" #'left-word
"<M-right>" #'right-word))
:defer t)
(use-package! eglot-booster
:after eglot
@ -308,7 +260,12 @@
(load! "obsidian-config.el")
(load! "mu4e-config.el")
;; import all my customized keybindings based on doom evil mode, but with meow instead.
;; import all my customized keybindings based on doom vil mode, but with meow instead.
(load! "bindings.el")
(load! "meow.el")
;;(unless server-running-p (server-start))
(delete-selection-mode t) ; delete stuff!
(setq delete-active-region t) ; delete selected stuff!
(+global-word-wrap-mode +1) ; default to soft word wrap