~heckyel/emacs-personal

46552ee63da257edb74a9bf9cb96edf052fa1310 — Jesús 2 years ago a066539
Add linter support
4 files changed, 28 insertions(+), 2 deletions(-)

M .gitignore
M custom.el
M init.el
A modules/init-linter.el
M .gitignore => .gitignore +2 -0
@@ 5,6 5,8 @@
.cache/
.litable-lists.el
.org-id-locations
.lsp-session-v1
.dap-breakpoints
.session
.smex-items
*.eld

M custom.el => custom.el +1 -1
@@ 9,7 9,7 @@
 '(anzu-replace-to-string-separator " => ")
 '(anzu-search-threshold 1000)
 '(package-selected-packages
   '(dotenv-mode web-mode vue-mode company-php php-mode php-refactor-mode markdown-mode js2-refactor ivy-hydra hydra log4j-mode dashboard neotree highlight-indent-guides doom-modeline which-key doom-themes yaml-mode whitespace-cleanup-mode use-package undo-tree smartparens shrink-path sass-mode rjsx-mode rainbow-mode py-autopep8 projectile pkgbuild-mode pip-requirements nginx-mode lua-mode json-mode ivy-rich go-mode git-timemachine git-modes git-gutter-fringe flycheck eslintd-fix emmet-mode elpy editorconfig dokuwiki-mode dockerfile-mode diminish crystal-mode counsel company-quickhelp apache-mode anzu all-the-icons)))
   '(tide dotenv-mode web-mode vue-mode company-php php-mode php-refactor-mode markdown-mode js2-refactor ivy-hydra hydra log4j-mode dashboard neotree highlight-indent-guides doom-modeline which-key doom-themes yaml-mode whitespace-cleanup-mode use-package undo-tree smartparens shrink-path sass-mode rjsx-mode rainbow-mode py-autopep8 projectile pkgbuild-mode pip-requirements nginx-mode lua-mode json-mode ivy-rich go-mode git-timemachine git-modes git-gutter-fringe flycheck eslintd-fix emmet-mode elpy editorconfig dokuwiki-mode dockerfile-mode diminish crystal-mode counsel company-quickhelp apache-mode anzu all-the-icons)))
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.

M init.el => init.el +2 -1
@@ 116,7 116,8 @@
  (require 'init-web-mode)
  (require 'init-dotenv)
  (require 'init-dockerfile)
  (require 'init-dokuwiki))
  (require 'init-dokuwiki)
  (require 'init-linter))

;;; Custom variables
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))

A modules/init-linter.el => modules/init-linter.el +23 -0
@@ 0,0 1,23 @@
;;; init-linter.el --- .Emacs Configuration -*- lexical-binding: t -*-
;;; Commentary:
;;

;;; Code:
;;---------------------------
;; Lsp Mode
;;---------------------------
(use-package lsp-mode
  :config
  (add-hook 'lsp-mode-hook #'lsp-enable-which-key-integration)
  (add-hook 'prog-mode-hook #'lsp))

(use-package lsp-treemacs
  :config
  (lsp-treemacs-sync-mode 1))

(use-package dap-mode)

(provide 'init-linter)

;; End:
;;; init-linter.el ends here