emacs/custom.el

98 lines
3.7 KiB
EmacsLisp
Raw Normal View History

2023-10-31 22:29:24 +01:00
;;; custom.el -- Fschl Crafted Emacs user customization file -*- lexical-binding: t; -*-
;; This file is generated from custom.org. If you want to edit the
;; configuration, DO NOT edit custom.el, edit custom.org, instead.
;; Copyright (C) 2023 fschl
;; Author: fschl <fschl@x230-x>
;; Keywords: tools, docs
(menu-bar-mode -1)
(tool-bar-mode -1)
(scroll-bar-mode -1)
(fset 'yes-or-no-p 'y-or-n-p) ;; shorten yes-no answers
2023-10-31 22:29:24 +01:00
;; Tangle the code blocks to config.el on save.
(defun org-babel-tangle-config ()
2023-10-31 22:29:24 +01:00
(when (string-equal (buffer-file-name)
(expand-file-name "init.org" user-emacs-directory))
;; Dynamic scoping to the rescue
(let ((org-confirm-babel-evaluate nil))
(org-babel-tangle))))
(add-hook 'org-mode-hook
(lambda ()
(add-hook 'after-save-hook #'org-babel-tangle-config)))
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(LaTeX-electric-left-right-brace t)
2023-10-31 22:29:24 +01:00
'(Man-notify-method 'aggressive t)
'(TeX-auto-save t)
'(TeX-electric-math '("$" . "$"))
'(TeX-electric-sub-and-superscript t)
'(TeX-parse-self t)
2023-10-31 22:29:24 +01:00
'(bookmark-save-flag 1)
'(completion-category-overrides '((file (styles partial-completion))))
'(completion-cycle-threshold 3)
2023-10-31 22:29:24 +01:00
'(completion-styles '(orderless basic))
'(completions-detailed t)
'(corfu-auto t)
'(corfu-auto-prefix 2)
'(corfu-cycle t)
'(dired-auto-revert-buffer t)
'(dired-dwim-target t)
'(ediff-window-setup-function 'ediff-setup-windows-plain t)
'(eglot-autoshutdown t t)
'(eshell-scroll-to-bottom-on-input 'this t)
'(evil-respect-visual-line-mode t)
'(evil-undo-system 'undo-redo)
'(evil-want-C-h-delete t)
'(evil-want-C-i-jump nil)
'(evil-want-integration t)
'(evil-want-keybinding nil)
2024-02-23 18:55:38 +01:00
'(fancy-splash-image
"/home/fschl/.config/crafted-emacs-configdir/crafted-emacs/system-crafters-logo.png")
'(fast-but-imprecise-scrolling t)
'(global-auto-revert-non-file-buffers t)
'(ibuffer-movement-cycle nil)
'(ibuffer-old-time 24)
'(kill-do-not-save-duplicates t)
2023-10-31 22:29:24 +01:00
'(load-prefer-newer t t)
'(marginalia-annotators
'(marginalia-annotators-heavy marginalia-annotators-light nil) t)
'(markdown-enable-html t)
'(markdown-enable-math t)
'(org-hide-emphasis-markers t)
'(org-link-descriptive t)
'(org-mouse-1-follows-link t)
'(org-return-follows-link t)
'(package-archive-priorities
'(("gnu" . 99)
("nongnu" . 80)
("stable" . 70)
("melpa" . 0)))
'(package-selected-packages
2023-10-31 22:29:24 +01:00
'(ob-rust rustic cargo auctex pandoc-mode markdown-mode combobulate treesit-auto ibuffer-project aggressive-indent editorconfig tree-sitter-langs tree-sitter-ispell tree-sitter-indent tree-sitter eglot magit helpful elisp-demos all-the-icons org-appear denote evil-nerd-commenter evil-collection evil vertico orderless marginalia embark-consult embark corfu-terminal corfu consult cape))
'(reftex-plug-into-AUCTeX t)
'(safe-local-variable-values
'((vc-prepare-patches-separately)
(diff-add-log-use-relative-names . t)
(vc-git-annotate-switches . "-w")))
'(scroll-conservatively 101)
'(scroll-margin 0)
'(scroll-preserve-screen-position t)
'(switch-to-buffer-in-dedicated-window 'pop)
'(switch-to-buffer-obey-display-actions t)
'(tab-always-indent 'complete)
'(vertico-cycle t)
2023-10-31 22:29:24 +01:00
'(xref-show-definitions-function 'xref-show-definitions-completing-read))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(default ((t (:height 80)))))