mirror of
https://codeberg.org/ultra/nixos-dotfiles.git
synced 2024-11-05 08:43:08 +02:00
More emacs stuff!
This commit is contained in:
parent
002b44869b
commit
745e5c60b8
2 changed files with 29 additions and 12 deletions
|
@ -1,8 +1,8 @@
|
|||
(let ((indent 2))
|
||||
(setq standard-indent indent)
|
||||
(setq-default indent-tabs-mode nil)
|
||||
(setq-default tab-width 2)
|
||||
(setq c-basic-offset indent))
|
||||
(setq-default indent-tabs-mode nil)
|
||||
(setq-default tab-width 2)
|
||||
(setq c-basic-offset indent))
|
||||
(load (expand-file-name "~/.quicklisp/slime-helper.el"))
|
||||
(setq inferior-lisp-program "sbcl")
|
||||
(defun font-size-to-height (size) (* 10 size))
|
||||
|
@ -28,9 +28,11 @@
|
|||
|
||||
(setq vertico-cycle nil)
|
||||
(setq vertico-resize t)
|
||||
;; (bind-key "C-j" vertico-next-group)
|
||||
;; (global-set-key (kbd "C-k") vertico-previous-group)
|
||||
;; (global-set-key (kbd "<tab>") vertico-insert)
|
||||
(keymap-global-set "C-j" #'vertico-next-group)
|
||||
(keymap-global-set "C-k" #'vertico-previous-group)
|
||||
; (keymap-global-set "<tab>" #'vertico-insert)
|
||||
(add-hook 'text-mode-hook (lambda ()
|
||||
(keymap-set text-mode-map "<tab>" #'vertico-insert)))
|
||||
(vertico-mode)
|
||||
|
||||
(savehist-mode)
|
||||
|
@ -38,15 +40,29 @@
|
|||
(marginalia-mode 1)
|
||||
|
||||
|
||||
;; (global-set-key (kbd "M-s M-g") consult-grep)
|
||||
;; (global-set-key (kbd "M-s M-f") consult-find)
|
||||
;; (global-set-key (kbd "M-s M-o") consult-outline)
|
||||
;; (global-set-key (kbd "M-s M-l") consult-line)
|
||||
;; (global-set-key (kbd "M-s M-b") consult-buffer)
|
||||
;; (global-set-key (kbd "M-s M-m") consult-man)
|
||||
(keymap-global-set "M-s M-g" #'consult-grep)
|
||||
(keymap-global-set "M-s M-f" #'consult-find)
|
||||
(keymap-global-set "M-s M-o" #'consult-outline)
|
||||
(keymap-global-set "M-s M-l" #'consult-line)
|
||||
(keymap-global-set "M-s M-b" #'consult-buffer)
|
||||
(keymap-global-set "M-s M-m" #'consult-man)
|
||||
|
||||
|
||||
(setq corfu-cycle t)
|
||||
(setq corfu-auto t)
|
||||
;(corfu-separator ?\s)
|
||||
(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)
|
||||
|
|
|
@ -52,6 +52,7 @@ let
|
|||
consult
|
||||
corfu
|
||||
bind-key
|
||||
highlight-indent-guides
|
||||
];
|
||||
});
|
||||
helix = inputs.helix.packages.${pkgs.system}.default;
|
||||
|
|
Loading…
Reference in a new issue