Add zoxide and llvm ir mode for emacs

This commit is contained in:
Antonin Ruan
2025-04-28 17:39:39 +02:00
parent d3b187ea50
commit 626ade0d0a
4 changed files with 304 additions and 1 deletions

10
.emacs
View File

@@ -123,6 +123,9 @@
(require 'fasm-mode)
(add-to-list 'auto-mode-alist '("\\.asm\\'" . fasm-mode))
(require 'llvm-mode)
(add-to-list 'auto-mode-alist '("\\.ll\\'" . llvm-mode))
(require 'simpc-mode)
;; (add-to-list 'auto-mode-alist '("\\.[hc]\\(pp\\)?\\'" . simpc-mode))
@@ -337,6 +340,9 @@
(add-hook 'asm-mode-hook #'my-asm-mode-hook)
;;; Clang format
(rc/require 'clang-format)
;;; Lsp-mode
(rc/require 'lsp-mode
'lsp-treemacs
@@ -355,6 +361,10 @@
(add-hook 'c++-mode-hook 'lsp)
(add-hook 'python-mode 'lsp)
;;; zoxide
(rc/require 'zoxide)
(add-hook 'dired-after-readin-hook 'zoxide-add)
(setq gc-cons-threshold (* 100 1024 1024)
read-process-output-max (* 1024 1024)
treemacs-space-between-root-nodes nil