2024-03-07 20:17:35 +02:00
|
|
|
(let ((indent 2))
|
|
|
|
(setq standard-indent indent)
|
2024-03-08 12:36:38 +02:00
|
|
|
(setq-default indent-tabs-mode nil)
|
|
|
|
(setq-default tab-width 2)
|
|
|
|
(setq c-basic-offset indent))
|
2024-03-07 16:57:57 +02:00
|
|
|
(load (expand-file-name "~/.quicklisp/slime-helper.el"))
|
|
|
|
(setq inferior-lisp-program "sbcl")
|
2024-03-07 20:17:35 +02:00
|
|
|
(defun font-size-to-height (size) (* 10 size))
|
|
|
|
(let ((font-size 14))
|
|
|
|
(set-face-attribute 'default nil :height (font-size-to-height font-size)))
|
2024-03-07 16:57:57 +02:00
|
|
|
(setq mastodon-instance-url "https://shonk.phite.ro"
|
|
|
|
mastodon-active-user "graphite")
|
|
|
|
(evil-mode 1)
|
2024-03-07 20:17:35 +02:00
|
|
|
(add-hook 'lisp-mode 'parinfer-rust-mode)
|
2024-03-07 16:57:57 +02:00
|
|
|
(require 'bshell)
|
|
|
|
(add-hook 'eshell-load-hook #'eat-eshell-mode)
|
|
|
|
(add-hook 'eshell-load-hook #'eat-eshell-visual-command-mode)
|
|
|
|
; (load (expand-file-name "~/.emacs.d/everblush-theme.el"))
|
|
|
|
(load-theme 'uwu)
|
|
|
|
(if (window-system)
|
2024-03-07 20:17:35 +02:00
|
|
|
(set-frame-size (selected-frame) 80 20))
|
|
|
|
;; (add-hook 'c++-mode-hook 'irony-mode)
|
|
|
|
;; (add-hook 'c-mode-hook 'irony-mode)
|
|
|
|
;; (add-hook 'irony-mode-hook 'irony-cdb-autosetup-compile-options)
|
|
|
|
(add-hook 'emacs-lisp-mode-hook 'parinfer-rust-mode)
|
|
|
|
|
|
|
|
;(push 'hotfuzz completion-styles)
|
|
|
|
|
|
|
|
(setq vertico-cycle nil)
|
|
|
|
(setq vertico-resize t)
|
2024-03-08 12:36:38 +02:00
|
|
|
(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)))
|
2024-03-07 20:17:35 +02:00
|
|
|
(vertico-mode)
|
|
|
|
|
|
|
|
(savehist-mode)
|
|
|
|
|
|
|
|
(marginalia-mode 1)
|
|
|
|
|
|
|
|
|
2024-03-08 12:36:38 +02:00
|
|
|
(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)
|
2024-03-07 20:17:35 +02:00
|
|
|
|
|
|
|
|
|
|
|
(setq corfu-cycle t)
|
|
|
|
(setq corfu-auto t)
|
|
|
|
;(corfu-separator ?\s)
|
|
|
|
(global-corfu-mode)
|
2024-03-08 12:36:38 +02:00
|
|
|
|
|
|
|
(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)
|