pankomacs/emacs/config.el

81 lines
1.8 KiB
EmacsLisp
Raw Normal View History

(use-package emacs
:init
(defun crm-indicator (args)
(cons (format "[CRM%s] %s"
(replace-regexp-in-string
"\\`\\[.*?]\\*\\|\\[.*?]\\*\\'" ""
crm-separator)
(car args))
(cdr args)))
(advice-add #'completing-read-multiple :filter-args #'crm-indicator)
(setq minibuffer-prompt-properties
'(read-only t cursor-intangible t face minibuffer-prompt))
(add-hook 'minibuffer-setup-hook #'cursor-intangible-mode)
2024-11-17 06:20:41 +00:00
:custom
(inhibit-splash-screen t)
(inhibit-startup-screen t)
(initial-scratch-message nil)
(enable-recursive-minibuffers t)
(read-extended-command-predicate #'command-completion-default-include-p)
(tab-always-indent 'complete)
:config
(menu-bar-mode -1)
(tool-bar-mode -1)
(scroll-bar-mode -1)
2024-11-21 15:12:57 +00:00
:hook (prog-mode . display-line-numbers-mode))
(use-package mood-line
:init
(mood-line-mode 1))
(use-package helm
:bind (("C-x C-f" . helm-find-files)
("M-x" . helm-M-x)
("M-s o" . helm-occur)
("C-h a" . helm-apropos))
2024-11-19 09:21:37 +00:00
:init
(helm-mode 1))
(use-package savehist
:init
(savehist-mode 1))
(use-package which-key
:init (which-key-mode 1))
2024-11-23 21:03:41 +00:00
(use-package kanagawa-themes
2024-11-15 17:45:19 +00:00
:init
2024-11-23 21:03:41 +00:00
(load-theme 'kanagawa-wave t))
(use-package nix-mode
:mode "\\.nix\\'")
2024-10-14 23:39:21 +01:00
(use-package rust-mode
:mode "\\.rs\\'")
(use-package envrc
:hook (after-init . envrc-global-mode))
2024-10-21 14:58:11 +01:00
(use-package qml-ts-mode
:mode "\\.qml\\'")
2024-10-29 16:08:05 +00:00
(use-package haskell-mode
:mode "\\.hs\\'")
(use-package python
2024-11-17 06:20:41 +00:00
:custom
(python-indent-offset 4))
(use-package cc-mode
2024-11-17 06:20:41 +00:00
:custom
(c-basic-offset 4))
2024-11-21 14:49:00 +00:00
(use-package eat
:hook (eshell-load . (lambda ()
(eat-eshell-mode)
(eat-eshell-visual-command-mode)))
2024-11-21 14:49:00 +00:00
:bind (("C-c t" . eat)
("C-x p t" . eat-project)))
(provide 'config)