Browse Source

Use custom instead of setq

main
parent
commit
1caa768f4a
  1. 21
      modules/projects.el

21
modules/projects.el

@ -27,15 +27,32 @@
(use-package ccls (use-package ccls
:hook ((c-mode c++-mode objc-mode cuda-mode) . :hook ((c-mode c++-mode objc-mode cuda-mode) .
(lambda () (require 'ccls) (lsp))))
(lambda () (require 'ccls) (lsp)))
:config
(add-to-list 'org-structure-template-alist '("cc" . "src cc")))
(use-package python-mode (use-package python-mode
:hook (python-mode . lsp) :hook (python-mode . lsp)
:config (require 'dap-python) :config (require 'dap-python)
(add-to-list 'org-src-lang-modes '("python" . python))
(add-to-list 'org-structure-template-alist '("py" . "src python"))
(org-babel-do-load-languages 'org-babel-load-languages '((python . t)))
:custom (python-shell-interpreter "python3") ;; Required if "python" is not python 3. :custom (python-shell-interpreter "python3") ;; Required if "python" is not python 3.
(dap-python-executable "python3") ;; Same as above. (dap-python-executable "python3") ;; Same as above.
(dap-python-debugger 'debugpy)) (dap-python-debugger 'debugpy))
(use-package plantuml-mode
:custom (plantuml-default-exec-mode 'jar)
(plantuml-jar-path "~/.local/bin/plantuml.jar")
(org-plantuml-jar-path (expand-file-name "~/.local/bin/plantuml.jar"))
(org-startup-with-inline-images t)
:config (add-to-list 'org-src-lang-modes '("plantuml" . plantuml))
(add-to-list 'org-structure-template-alist '("pl" . "src plantuml"))
(org-babel-do-load-languages 'org-babel-load-languages '((plantuml . t))))
(dotfiles/leader
"ti" '(org-display-inline-images :which-key "Images"))
(setenv "GOPATH" (concat (getenv "HOME") "/.go/")) (setenv "GOPATH" (concat (getenv "HOME") "/.go/"))
(setenv "PATH" (concat (getenv "GOPATH") "bin:" (getenv "PATH"))) (setenv "PATH" (concat (getenv "GOPATH") "bin:" (getenv "PATH")))
@ -48,3 +65,5 @@
(add-hook 'before-save-hook #'lsp-organize-imports t t)) (add-hook 'before-save-hook #'lsp-organize-imports t t))
(add-hook 'go-mode-hook #'dotfiles/go-hook) (add-hook 'go-mode-hook #'dotfiles/go-hook)
(add-to-list 'org-structure-template-alist '("go" . "src go"))
Loading…
Cancel
Save