2023-07-15 23:28:55 +02:00
|
|
|
;;; custom.el --- fschl-crafted-emacs-config -*- lexical-binding: t; -*-
|
|
|
|
|
|
|
|
;; Copyright (C) 2023 fschl
|
|
|
|
|
|
|
|
;; Author: fschl <fschl@x230-x>
|
|
|
|
;; Keywords: tools, docs
|
2023-07-16 16:54:31 +02:00
|
|
|
|
|
|
|
;; basic stuff. we need some more space
|
|
|
|
(menu-bar-mode -1)
|
|
|
|
(tool-bar-mode -1)
|
|
|
|
(scroll-bar-mode -1)
|
|
|
|
|
2023-07-17 22:08:19 +02:00
|
|
|
(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)))
|
|
|
|
|
2023-07-17 00:09:08 +02:00
|
|
|
(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))
|
|
|
|
|
2023-07-16 16:54:31 +02:00
|
|
|
(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)))))
|
|
|
|
|
|
|
|
|
2023-07-15 23:28:55 +02:00
|
|
|
(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.
|
|
|
|
'(Man-notify-method 'aggressive 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)
|
|
|
|
'(ediff-window-setup-function 'ediff-setup-windows-plain t)
|
2023-07-16 16:54:31 +02:00
|
|
|
'(eglot-autoshutdown t t)
|
2023-07-15 23:28:55 +02:00
|
|
|
'(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)
|
2023-07-16 16:54:31 +02:00
|
|
|
'(ibuffer-movement-cycle nil)
|
|
|
|
'(ibuffer-old-time 24)
|
2023-07-15 23:28:55 +02:00
|
|
|
'(kill-do-not-save-duplicates t)
|
|
|
|
'(load-prefer-newer t t)
|
|
|
|
'(org-hide-emphasis-markers t t)
|
|
|
|
'(org-link-descriptive t t)
|
|
|
|
'(org-mouse-1-follows-link t t)
|
|
|
|
'(org-return-follows-link t t)
|
|
|
|
'(package-archive-priorities
|
|
|
|
'(("gnu" . 99)
|
|
|
|
("nongnu" . 80)
|
|
|
|
("stable" . 70)
|
|
|
|
("melpa" . 0)))
|
|
|
|
'(package-selected-packages
|
2023-07-17 00:09:08 +02:00
|
|
|
'(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))
|
2023-07-15 23:28:55 +02:00
|
|
|
'(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))
|
2023-07-16 16:54:31 +02:00
|
|
|
|