diff options
author | Cesar Monroy <[email protected]> | 2023-08-23 22:52:11 -0600 |
---|---|---|
committer | Cesar Monroy <[email protected]> | 2023-08-23 22:52:11 -0600 |
commit | 03778fc6f821edf2e0ea342c7f8191d49f9dc882 (patch) | |
tree | f03006b190ec60e3e45e0d5efe1372c9cbb034a4 /config.org | |
parent | 10de6bf2ce8cf7ab6ac0099fd07d8e5c4e9e34c6 (diff) |
Diffstat (limited to 'config.org')
-rw-r--r-- | config.org | 107 |
1 files changed, 68 insertions, 39 deletions
@@ -24,12 +24,40 @@ Exclude message of error or custom vars of config file (load custom-file 'noerror 'nomessage) #+end_src * Customization +** General +#+begin_src emacs-lisp + (fido-vertical-mode) + (menu-bar-mode -1) + (tool-bar-mode -1) + (setq org-startup-folded t) + (recentf-mode) + (savehist-mode) + (global-hl-line-mode) + (global-subword-mode) + (global-auto-revert-mode) + (save-place-mode) + (column-number-mode) + (size-indication-mode) + (global-visual-line-mode) + (delete-selection-mode) + (setq use-dialog-box nil) + (setq visible-bell t) + (setq org-startup-indented t) + (setq make-backup-files nil) + (setq auto-save-default nil) + (setq global-auto-revert-non-file-buffers t) + (defalias 'yes-or-no-p 'y-or-n-p) + (global-set-key (kbd "C-x k") 'kill-buffer-and-window) + (global-set-key "\C-x\ \C-r" 'recentf-open-files) + (add-hook 'prog-mode-hook 'display-line-numbers-mode) +#+end_src ** Theme #+begin_src emacs-lisp (use-package doom-themes :ensure t - :config + :init (load-theme 'doom-solarized-light t) + :config (doom-themes-org-config) (doom-themes-visual-bell-config)) #+end_src @@ -62,32 +90,12 @@ Exclude message of error or custom vars of config file :config (doom-modeline-mode) :custom ((doom-modeline-height 15))) #+end_src -** General -#+begin_src emacs-lisp - (fido-vertical-mode) - (menu-bar-mode -1) - (tool-bar-mode -1) - (setq org-startup-folded t) - (recentf-mode) - (savehist-mode) - (global-hl-line-mode) - (global-subword-mode) - (global-auto-revert-mode) - (save-place-mode) - (column-number-mode) - (size-indication-mode) - (global-visual-line-mode) - (delete-selection-mode) - (setq use-dialog-box nil) - (setq visible-bell t) - (setq org-startup-indented t) - (setq make-backup-files nil) - (setq auto-save-default nil) - (setq global-auto-revert-non-file-buffers t) - (defalias 'yes-or-no-p 'y-or-n-p) - (global-set-key (kbd "C-x k") 'kill-buffer-and-window) - (global-set-key "\C-x\ \C-r" 'recentf-open-files) - (add-hook 'prog-mode-hook 'display-line-numbers-mode) +** Ansi-color for terminal +#+begin_src elisp + (require 'ansi-color) + (defun colorize-compilation-buffer () + (ansi-color-apply-on-region compilation-filter-start (point))) + (add-hook 'compilation-filter-hook 'colorize-compilation-buffer) #+end_src * Interface Functions ** Newsticker @@ -112,7 +120,7 @@ Exclude message of error or custom vars of config file #+begin_src emacs-lisp (use-package undo-tree :ensure t - :init + :config (global-undo-tree-mode)) #+end_src ** Writeroom @@ -168,15 +176,18 @@ deep. (setq auto-revert-check-vc-info t)) #+end_src ** IDE -*** Lsp +*** LSP +Language Server Protocol is for install support for diferent +languages. #+begin_src emacs-lisp (use-package lsp-mode :ensure t - :hook - ((lsp-mode . lsp-enable-which-key-integration)) - :config - (setq lsp-completion-enable-additional-text-edit nil)) - (use-package lsp-ui :ensure t) + :hook ((lsp-mode . lsp-enable-which-key-integration)) + :config (setq lsp-completion-enable-additional-text-edit nil)) + (use-package lsp-ui + :ensure t + :hook (lsp-mode . lsp-ui-mode) + :custom (lsp-ui-doc-position 'bottom)) #+end_src *** Dap #+begin_src emacs-lisp @@ -185,11 +196,23 @@ deep. :ensure t :config (dap-auto-configure-mode)) #+end_src - *** Company +Code completation #+begin_src emacs-lisp (use-package company - :ensure t) + :ensure t + :after lsp-mode + :hook (lsp-mode . company-mode) + :bind + (:map company-active-map ("<tab>" . company-complete-selection)) + (:map lsp-mode-map ("<tab>" . company-indent-or-complete-common)) + :custom + (company-minimum-prefix-length 1) + (company-idle-delay 0.0)) + + (use-package company-box + :ensure t + :hook (company-mode . company-box-mode)) #+end_src *** Yasnippet #+begin_src emacs-lisp @@ -197,6 +220,11 @@ deep. :ensure t :config (yas-global-mode)) #+end_src +*** flycheck +#+begin_src emacs-lisp + (use-package flycheck + :ensure t) +#+end_src ** Web *** Web Mode #+begin_src emacs-lisp @@ -241,12 +269,13 @@ deep. *** LSP #+begin_src emacs-lisp (use-package lsp-java - :ensure t - :config (add-hook 'java-mode-hook 'lsp)) + :hook ((java-mode . lsp))) #+end_src *** Dap #+begin_src emacs-lisp - (use-package dap-java :ensure nil) + (use-package dap-java + :ensure nil + :after (lsp-java)) #+end_src ** COMMENT PlantUML #+begin_src emacs-lisp |