From 5321addd921468daf0500a403754d758562cb517 Mon Sep 17 00:00:00 2001 From: Frantisek Bohacek Date: Sat, 24 Feb 2024 10:30:35 +0100 Subject: [PATCH] feat: emacs remove laggy modes --- modules/editors/emacs/doom.d/config.el | 5 +++++ modules/editors/emacs/doom.d/init.el | 24 ++++++++++++------------ modules/editors/emacs/doom.d/packages.el | 9 +++++---- 3 files changed, 22 insertions(+), 16 deletions(-) diff --git a/modules/editors/emacs/doom.d/config.el b/modules/editors/emacs/doom.d/config.el index 704144c..a520315 100644 --- a/modules/editors/emacs/doom.d/config.el +++ b/modules/editors/emacs/doom.d/config.el @@ -252,3 +252,8 @@ (add-to-list 'auto-mode-alist '("\\.m$" . matlab-mode)) (setq matlab-shell-command-switches (list "-nodesktop")) + +;; topsy doesn't work well for some modes such as vhdl-mode :( +;; (add-hook 'prog-mode-hook #'topsy-mode) + +(setq company-idle-delay nil) diff --git a/modules/editors/emacs/doom.d/init.el b/modules/editors/emacs/doom.d/init.el index 5975bc4..97b4e84 100644 --- a/modules/editors/emacs/doom.d/init.el +++ b/modules/editors/emacs/doom.d/init.el @@ -32,29 +32,29 @@ doom ; what makes DOOM look the way it does doom-dashboard ; a nifty splash screen for Emacs ;;doom-quit ; DOOM quit-message prompts when you quit Emacs - (emoji +unicode) ; 🙂 + ;; (emoji +unicode) ; 🙂 hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW ;;hydra ;;indent-guides ; highlighted indent columns ;;ligatures ; ligatures and symbols to make your code pretty again - minimap ; show a map of the code on the side - modeline ; snazzy, Atom-inspired modeline, plus API + ;; minimap ; show a map of the code on the side + (modeline +light) ; snazzy, Atom-inspired modeline, plus API nav-flash ; blink cursor line after big motions ;;neotree ; a project drawer, like NERDTree for vim ophints ; highlight the region an operation acts on (popup +defaults) ; tame sudden yet inevitable temporary windows ;;tabs ; a tab bar for Emacs - treemacs ; a project drawer, like neotree but cooler + ;;treemacs ; a project drawer, like neotree but cooler ;;unicode ; extended unicode support for various languages (vc-gutter +pretty) ; vcs diff in the fringe vi-tilde-fringe ; fringe tildes to mark beyond EOB window-select ; visually switch windows - workspaces ; tab emulation, persistence & separate workspaces + ;;workspaces ; tab emulation, persistence & separate workspaces ;;zen ; distraction-free coding or writing :editor (evil +everywhere); come to the dark side, we have cookies - file-templates ; auto-snippets for empty files + ;;file-templates ; auto-snippets for empty files fold ; (nigh) universal code folding ;;(format +onsave) ; automated prettiness ;;god ; run Emacs commands without modifier keys @@ -75,8 +75,8 @@ :term ;;eshell ; the elisp shell that works everywhere - shell ; simple shell REPL for Emacs - term ; basic terminal emulator for Emacs + ;;shell ; simple shell REPL for Emacs + ;;term ; basic terminal emulator for Emacs vterm ; the best terminal emulation in Emacs :checkers @@ -95,11 +95,11 @@ (eval +overlay) ; run code, run (also, repls) ;;gist ; interacting with github gists lookup ; navigate your code and its documentation - (lsp + peek) ; M-x vscode + (lsp +peek) ; M-x vscode magit ; a git porcelain for Emacs make ; run make tasks from Emacs ;;pass ; password manager for nerds - ;;pdf ; pdf enhancements + pdf ; pdf enhancements ;;prodigy ; FIXME managing external services & code builders ;;rgb ; creating color strings ;;taskrunner ; taskrunner for all your projects @@ -110,7 +110,7 @@ :os (:if IS-MAC macos) ; improve compatibility with macOS - ;;tty ; improve the terminal Emacs experience + tty ; improve the terminal Emacs experience :lang ;;agda ; types of types of types of types... @@ -186,7 +186,7 @@ ;;emms ;;everywhere ; *leave* Emacs!? You must be joking ;;irc ; how neckbeards socialize - (rss +org) ; emacs as an RSS reader + ;;(rss +org) ; emacs as an RSS reader ;;twitter ; twitter client https://twitter.com/vnought :config diff --git a/modules/editors/emacs/doom.d/packages.el b/modules/editors/emacs/doom.d/packages.el index c90b191..1b8b9ee 100644 --- a/modules/editors/emacs/doom.d/packages.el +++ b/modules/editors/emacs/doom.d/packages.el @@ -50,18 +50,19 @@ ;(unpin! t) (package! arm-mode :recipe (:host github :repo "charje/arm-mode")) -(package! dumb-jump) +;; (package! dumb-jump) (package! imenu-list) ;(package! combobulate) +; (package! vhdl-ext :recipe (:host github :repo "gmlarumbe/vhdl-ext" :files (:defaults "snippets" "ts-mode/*.el"))) -(package! fancy-narrow) +(package! verilog-ext) + +;; (package! fancy-narrow) (package! topsy) (package! ein) (package! ob-ipython) -(package! verilog-ext) - (package! matlab-mode) -- 2.48.1