2023-09-07 18:48:10 +04:00
|
|
|
;; UI/UX
|
|
|
|
(setq inhibit-startup-message t)
|
|
|
|
;; make it look like neovim a little
|
|
|
|
(scroll-bar-mode -1)
|
|
|
|
(tool-bar-mode -1)
|
|
|
|
(tooltip-mode -1)
|
|
|
|
(set-fringe-mode 10)
|
|
|
|
(menu-bar-mode -1)
|
|
|
|
;; Line Numbers
|
|
|
|
(column-number-mode)
|
|
|
|
(global-display-line-numbers-mode t)
|
|
|
|
;; disable line numbers on some modes
|
|
|
|
(dolist (mode '(org-mode-hook
|
|
|
|
term-mode-hook
|
|
|
|
eshell-mode-hook))
|
|
|
|
(add-hook mode (lambda () (display-line-numbers-mode 0))))
|
|
|
|
;; Bell
|
|
|
|
(setq visible-bell t)
|
|
|
|
|
|
|
|
;; Font
|
|
|
|
(set-face-attribute `default nil :font "JetBrains Mono" :height 125)
|
2023-09-07 22:22:28 +04:00
|
|
|
|
|
|
|
(org-babel-tangle)
|
|
|
|
(org-babel-tangle-file "~/nixos/config/emacs/emacs.org")
|
|
|
|
|
|
|
|
(defun sakomacs/org-babel-tangle-config ()
|
|
|
|
(when (string-equal (buffer-file-name)
|
|
|
|
(expand-file-name "~/nixos/config/emacs/emacs.org"))
|
|
|
|
(let ((org-confirm-babel-evaluate nil))
|
|
|
|
(org-babel-tangle)))
|
|
|
|
(add-hook 'org-mode-hook (lambda () (add-hook 'after-save-hook #'sakomacs/org-babel-tangle-config))))
|