fix(package): add config.el to gitignore

This commit is contained in:
Artur Manuel 2025-01-28 22:00:53 +00:00
commit 322949b010
2 changed files with 81 additions and 0 deletions

1
.gitignore vendored
View file

@ -9,3 +9,4 @@
!/media !/media
!/.editorconfig !/.editorconfig
!/lib.nix !/lib.nix
!/config.el

80
config.el Normal file
View file

@ -0,0 +1,80 @@
(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)
: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)
: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))
:init
(helm-mode 1))
(use-package savehist
:init
(savehist-mode 1))
(use-package which-key
:init (which-key-mode 1))
(use-package base16-theme
:init
(load-theme 'base16-nord t))
(use-package nix-mode
:mode "\\.nix\\'")
(use-package rust-mode
:mode "\\.rs\\'")
(use-package envrc
:hook (after-init . envrc-global-mode))
(use-package qml-ts-mode
:mode "\\.qml\\'")
(use-package haskell-mode
:mode "\\.hs\\'")
(use-package python
:custom
(python-indent-offset 4))
(use-package cc-mode
:custom
(c-basic-offset 4))
(use-package eat
:hook (eshell-load . (lambda ()
(eat-eshell-mode)
(eat-eshell-visual-command-mode)))
:bind (("C-c t" . eat)
("C-x p t" . eat-project)))
(provide 'config)