;;; custom.el --- fschl-crafted-emacs-config -*- lexical-binding: t; -*- ;; Copyright (C) 2023 fschl ;; Author: fschl ;; Keywords: tools, docs ;; basic stuff. we need some more space (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 (defun org-babel-tangle-config () "Tangle all Org-mode files in `user-emacs-directory` after save." (let ((user-emacs-dir (expand-file-name user-emacs-directory)) (buffer-file (expand-file-name (buffer-file-name)))) (when (and (string-equal (file-name-extension (buffer-file-name)) "org") (string-equal (file-name-directory (buffer-file-name)) user-emacs-dir)) (let ((default-directory user-emacs-dir) (org-confirm-babel-evaluate nil)) (org-babel-tangle-file (buffer-file-name)))))) (add-hook 'org-mode-hook (lambda () (add-hook 'after-save-hook #'org-babel-tangle-config))) (defvar fschl-org-file (expand-file-name "fschl-org.el" user-emacs-directory)) (when (and fschl-org-file (file-exists-p fschl-org-file)) (load fschl-org-file nil :nomessage)) (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))))) (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) '(Man-notify-method 'aggressive) '(TeX-auto-save t) '(TeX-electric-math '("$" . "$")) '(TeX-electric-sub-and-superscript t) '(TeX-parse-self t) '(bookmark-save-flag 1 t) '(completion-category-overrides '((file (styles partial-completion)))) '(completion-cycle-threshold 3) '(completions-detailed t) '(corfu-auto t) '(corfu-auto-delay 0.0) '(corfu-auto-prefix 2) '(corfu-cycle t) '(corfu-echo-documentation 0.25 t) '(dired-auto-revert-buffer t) '(dired-dwim-target t) '(dired-listing-switches "-alh") '(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) '(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) '(load-prefer-newer t) '(markdown-enable-html t) '(markdown-enable-math t) '(org-hide-emphasis-markers t) '(org-latex-compiler "xelatex") '(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 '(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) '(xref-show-definitions-function 'xref-show-definitions-completing-read t))