More emacs stuff!

This commit is contained in:
Alex Stan 2024-03-08 12:36:38 +02:00
parent 002b44869b
commit 745e5c60b8
2 changed files with 29 additions and 12 deletions

View file

@ -28,9 +28,11 @@
(setq vertico-cycle nil) (setq vertico-cycle nil)
(setq vertico-resize t) (setq vertico-resize t)
;; (bind-key "C-j" vertico-next-group) (keymap-global-set "C-j" #'vertico-next-group)
;; (global-set-key (kbd "C-k") vertico-previous-group) (keymap-global-set "C-k" #'vertico-previous-group)
;; (global-set-key (kbd "<tab>") vertico-insert) ; (keymap-global-set "<tab>" #'vertico-insert)
(add-hook 'text-mode-hook (lambda ()
(keymap-set text-mode-map "<tab>" #'vertico-insert)))
(vertico-mode) (vertico-mode)
(savehist-mode) (savehist-mode)
@ -38,15 +40,29 @@
(marginalia-mode 1) (marginalia-mode 1)
;; (global-set-key (kbd "M-s M-g") consult-grep) (keymap-global-set "M-s M-g" #'consult-grep)
;; (global-set-key (kbd "M-s M-f") consult-find) (keymap-global-set "M-s M-f" #'consult-find)
;; (global-set-key (kbd "M-s M-o") consult-outline) (keymap-global-set "M-s M-o" #'consult-outline)
;; (global-set-key (kbd "M-s M-l") consult-line) (keymap-global-set "M-s M-l" #'consult-line)
;; (global-set-key (kbd "M-s M-b") consult-buffer) (keymap-global-set "M-s M-b" #'consult-buffer)
;; (global-set-key (kbd "M-s M-m") consult-man) (keymap-global-set "M-s M-m" #'consult-man)
(setq corfu-cycle t) (setq corfu-cycle t)
(setq corfu-auto t) (setq corfu-auto t)
;(corfu-separator ?\s) ;(corfu-separator ?\s)
(global-corfu-mode) (global-corfu-mode)
(keymap-global-set "C-\\" #'eat)
(add-hook 'eat-mode-hook (lambda () (evil-mode nil)))
(evil-set-initial-state 'eat-mode 'emacs)
(setq evil-move-beyond-eol t)
(setq eglot-server-programs
(cons '(c-mode) "/home/ultra/.nix-profile/bin/clangd"))
(recentf-mode 1)
(setq recentf-max-menu-items 25)
(setq recentf-max-saved-items 25)
(keymap-global-set "C-x C-r" #'recentf)

View file

@ -52,6 +52,7 @@ let
consult consult
corfu corfu
bind-key bind-key
highlight-indent-guides
]; ];
}); });
helix = inputs.helix.packages.${pkgs.system}.default; helix = inputs.helix.packages.${pkgs.system}.default;