dots

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit c61fa013521dddd1737416563999d2ec6091f14a
parent 94db56cb8e43dbf96b6699abc8a2a9760e062ce9
Author: Gabriel G. de Brito <me@gboncoffee.dev.br>
Date:   Fri, 16 Oct 2026 13:16:04 -0300

Moved back to Emacs 31.

Diffstat:
Memacs/config.org | 46+++++++++++-----------------------------------
1 file changed, 11 insertions(+), 35 deletions(-)

diff --git a/emacs/config.org b/emacs/config.org @@ -109,10 +109,8 @@ Modus Vivendi is great: very dark, very readable, and the best: builtin. We need (set-face-attribute 'fixed-pitch nil :family "DejaVu Sans Mono" :height 110) (set-face-attribute 'variable-pitch nil :family - "Ubuntu" :height 120))) -(if (fboundp 'modus-themes-load-theme) - (modus-themes-load-theme 'modus-vivendi) - (modus-themes-load-vivendi)) + "Ubuntu" :height 130))) +(modus-themes-load-theme 'modus-vivendi) #+END_SRC Make some reading modes use variable text. Help mode variable pitch is only enabled in actual help buffers, because various modes use the help mode and they usually don't look good with variable pitch. @@ -197,13 +195,12 @@ Configures the builtin minibuffer completion so it's nicer. (setq completions-detailed t) (setq completions-format 'one-column) (setq completions-max-height 20) -(setq completions-sort - (if (fboundp 'minibuffer-sort-by-history) - 'historical - 'alphabetical)) +(setq completions-sort 'historical) (setq completion-auto-help t) (setq completion-auto-select nil) (setq minibuffer-visible-completions t) +(setq completion-eager-display t) +(setq completion-eager-update t) (define-key minibuffer-local-map (kbd "C-n") #'minibuffer-next-completion) (define-key minibuffer-local-map @@ -305,12 +302,6 @@ Ripgrep is fast. Also, the package automatically configures ~wgrep~ for us and o (global-set-key (kbd "<f6>") #'async-shell-command) #+END_SRC -*** Tree Sitter -#+BEGIN_SRC emacs-lisp -(use-package treesit-auto - :custom (treesit-auto-install 'prompt) - :hook (after-init . global-treesit-auto-mode)) -#+END_SRC ** Utilities *** Magit The best git UI in the world. @@ -454,14 +445,11 @@ Eldoc. *** C/C++ #+BEGIN_SRC emacs-lisp -(setq c-basic-offset 4) -(setq c-default-style "linux") -(setq c-tab-always-indent 'complete) (defun c-configs () (setq tab-width 4) (setq indent-tabs-mode nil)) (add-hook 'c-mode-hook #'c-configs) -(add-hook 'cpp-mode-hook #'c-configs) +(add-hook 'cpp-mod-hook #'c-configs) (add-hook 'c-ts-mode-hook #'c-configs) (add-hook 'cpp-ts-mode-hook #'c-configs) #+END_SRC @@ -507,7 +495,8 @@ Eldoc. (use-package odin-mode :mode "\\.odin\\'" :commands odin-mode - :ensure nil + :vc (:url "https://github.com/mattt-b/odin-mode.git" + :rev :last-release) :hook (odin-mode . (lambda () (setq-local indent-tabs-mode t) (indent-tabs-mode 1) @@ -567,16 +556,6 @@ Inferior mode. (setq-local tab-width 2))) #+END_SRC -Fix tree sitter. - -#+BEGIN_SRC emacs-lisp -(setq - treesit-load-name-override-list - '((verilog "libtree-sitter-verilog" "tree_sitter_systemverilog") - (systemverilog "libtree-sitter-verilog" "tree_sitter_systemverilog"))) - -#+END_SRC - *** Lua #+BEGIN_SRC emacs-lisp (use-package lua-mode @@ -616,10 +595,7 @@ Fix tree sitter. (add-hook 'odin-mode-hook #'odin-format-on-save-mode) (reformatter-define clang-format :program "clang-format") - (add-hook 'c-mode-hook #'clang-format-on-save-mode) - (add-hook 'c-ts-mode-hook #'clang-format-on-save-mode) - (add-hook 'cpp-mode-hook #'clang-format-on-save-mode) - (add-hook 'cpp-ts-mode-hook #'clang-format-on-save-mode)) + (add-hook 'simpc-mode-hook #'clang-format-on-save-mode)) #+END_SRC *** Minor languages without builtin-support @@ -665,8 +641,8 @@ Hide and fontify everything. (setq-default org-edit-src-content-indentation 0) (setq-default org-hide-macro-markers t) (setq-default org-hide-emphasis-markers t) -(setq-default org-cycle-hide-block-startup t) -(setq-default org-cycle-hide-drawer-startup t) +(setq-default org-hide-block-startup t) +(setq-default org-hide-drawer-startup t) (setq-default org-startup-folded 'fold) (setq org-hidden-keywords '(title)) (setq org-superstar-leading-bullet ?\s)