mirror of https://github.com/Chizi123/.emacs.d.git

Joel Grunbaum
2020-10-20 2b80ab79e7214879060a9c1cdbcc4840386d6a40
config.org
@@ -14,7 +14,8 @@
         (use-package exec-path-from-shell
           :ensure t
           :config
           (exec-path-from-shell-initialize))))
           (exec-path-from-shell-initialize))
         (setq default-directory "~/")))
#+END_SRC
* Aesthetic changes
@@ -112,7 +113,10 @@
  (require 'ispell)
  (setq-default ispell-program-name "aspell")
  (setq-default ispell-local-dictionary "en_AU")
  (add-hook 'tex-mode-hook 'flyspell-mode)
  (add-hook 'latex-mode-hook 'flyspell-mode)
  (add-hook 'TeX-mode-hook 'flyspell-mode)
  (add-hook 'LaTeX-mode-hook 'flyspell-mode)
  ;; (add-hook 'latex-mode-hook 'flyspell-buffer)
  (add-hook 'org-mode-hook 'flyspell-mode)
  ;; (add-hook 'org-mode-hook 'flyspell-buffer)
@@ -614,7 +618,9 @@
  (set-language-environment "UTF-8")
  (prefer-coding-system 'utf-8)
  (setq-default indent-tabs-mode t
            tab-width 4)
                tab-width 4
                c-basic-offset tab-width
                cperl-indent-level tab-width)
  (delete-selection-mode)
  (global-set-key (kbd "RET") 'newline-and-indent)
#+END_SRC
@@ -795,7 +801,8 @@
    :commands lsp
    :config
    (setq read-process-output-max (* 1024 1024))
    (setq lsp-completion-provider :capf))
    (setq lsp-completion-provider :capf)
    (add-to-list 'exec-path "~/.cargo/bin"))
  (use-package lsp-ui
    :ensure t
@@ -1085,6 +1092,14 @@
  (add-hook 'latex-mode-hook (lambda () (define-key latex-mode-map (kbd "C-c c") 'texcount)))
#+END_SRC
**** LSP
Allow LSP completion
#+BEGIN_SRC emacs-lisp
  (add-hook 'tex-mode-hook 'lsp)
  (add-hook 'latex-mode-hook 'lsp)
  (add-hook 'TeX-mode-hook 'lsp)
  (add-hook 'LaTeX-mode-hook 'lsp)
#+END_SRC
*** PlantUML
Sets the PlantUML path for the mode to generate models.
#+BEGIN_SRC emacs-lisp