From 2ceeed9040d0b5a015fd634122afcf35f432ba45 Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Sun, 26 Nov 2023 02:03:29 +0300 Subject: 2023-11-26 --- modules/common/emacs/doom/config.el | 29 ++++++++++++++++++++++++++++ modules/common/emacs/doom/init.el | 36 +++++++++++------------------------ modules/common/emacs/doom/packages.el | 2 ++ 3 files changed, 42 insertions(+), 25 deletions(-) (limited to 'modules/common/emacs/doom') diff --git a/modules/common/emacs/doom/config.el b/modules/common/emacs/doom/config.el index 257a3ea..dee3d3d 100644 --- a/modules/common/emacs/doom/config.el +++ b/modules/common/emacs/doom/config.el @@ -32,6 +32,16 @@ lsp-file-watch-threshold 4096 lsp-modeline-code-actions-enable nil) +;; +;;; Go +;; + +(setq lsp-go-analyses '((shadow . t) + (unsedvariable . t) + (unusedparams . t) + (unusedwrite . t) + (useany . t))) + ;; ;;; Org ;; @@ -106,6 +116,13 @@ org-roam-ui-update-on-save t org-roam-ui-open-on-start t)) +;; +;;; LaTeX +;; + +(map! :map cdlatex-mode-map + :i "TAB" #'cdlatex-tab) + ;; ;;; PlantUML ;; @@ -186,6 +203,18 @@ (+pass-get-secret "server/soju.manwe.shire.net/azahi")))) '("libera" "oftc" "hackint" "rizon"))) +;; +;;; Fcitx +;; + +(use-package! fcitx + :after evil + :config + (when (setq fcitx-remote-command + (or (executable-find "fcitx5-remote") + (executable-find "fcitx-remote"))) + (fcitx-evil-turn-on))) + ;; ;;; Hledger ;; diff --git a/modules/common/emacs/doom/init.el b/modules/common/emacs/doom/init.el index f03971f..0a5a417 100644 --- a/modules/common/emacs/doom/init.el +++ b/modules/common/emacs/doom/init.el @@ -1,26 +1,20 @@ (doom! :input - ;; japanese + japanese :completion company vertico :ui - ;; deft doom - ;; doom-dashboard - ;; doom-quit (emoji +unicode) hl-todo - hydra indent-guides ligatures modeline - ;; nav-flash + nav-flash ophints (popup +defaults) - ;; tabs - ;; unicode (vc-gutter +diff-hl +pretty) window-select workspaces @@ -30,10 +24,7 @@ file-templates fold format - ;; lispy - ;; multiple-cursors parinfer - ;; rotate-text snippets word-wrap @@ -63,7 +54,7 @@ gist (lookup +dictionary +offline) (lsp +peek) - (magit +forge) + magit make (pass +auth) pdf @@ -76,27 +67,24 @@ :lang (cc +lsp +tree-sitter) - (common-lisp +lsp +tree-sitter) data - (dhall +lsp +tree-sitter) - (emacs-lisp +lsp +tree-sitter) + dhall + emacs-lisp (go +lsp +tree-sitter) (haskell +lsp +tree-sitter) (java +lsp +tree-sitter) (javascript +lsp +tree-sitter) (json +lsp +tree-sitter) - (kotlin +lsp +tree-sitter) - (latex +lsp +tree-sittter) - (markdown +lsp +tree-sitter) + kotlin + (latex +latexmk +cdlatex +lsp) + markdown (nix +lsp +tree-sitter) - (org +pandoc +roam2) + (org +contacts +gnuplot +pandoc +pomodoro +roam2) plantuml - (python +lsp +tree-sitter) - (racket +lsp +tree-sitter) + (python +poetry +lsp +tree-sitter) (rust +lsp +tree-sitter) - (scheme +lsp +tree-sitter +racket) (sh +lsp +tree-sitter) - web + (web +lsp +tree-sitter) (yaml +lsp +tree-sitter) (zig +lsp +tree-sitter) @@ -105,8 +93,6 @@ :app calendar - ;; emms - ;; everywhere irc (rss +org) diff --git a/modules/common/emacs/doom/packages.el b/modules/common/emacs/doom/packages.el index 26a1d31..ba24eb8 100644 --- a/modules/common/emacs/doom/packages.el +++ b/modules/common/emacs/doom/packages.el @@ -10,3 +10,5 @@ :branch "main")) (package! hledger-mode) + +(package! fcitx) -- cgit v1.2.3