Minor refactors & revision across the board
This commit is contained in:
parent
a54d2b3804
commit
6a64f37435
11 changed files with 48 additions and 35 deletions
|
@ -3,10 +3,6 @@
|
|||
(after! projectile
|
||||
(add-to-list 'projectile-project-root-files "mix.exs"))
|
||||
|
||||
(after! highlight-numbers
|
||||
(puthash 'elixir-mode
|
||||
"\\_<-?[[:digit:]]+\\(?:_[[:digit:]]\\{3\\}\\)*\\_>"
|
||||
highlight-numbers-modelist))
|
||||
|
||||
;;
|
||||
;;; Packages
|
||||
|
@ -41,7 +37,12 @@
|
|||
(sp-local-pair "fn " " end" :unless '(sp-in-comment-p sp-in-string-p)))
|
||||
|
||||
(when (featurep! +lsp)
|
||||
(add-hook 'elixir-mode-local-vars-hook #'lsp!)))
|
||||
(add-hook 'elixir-mode-local-vars-hook #'lsp!))
|
||||
|
||||
(after! highlight-numbers
|
||||
(puthash 'elixir-mode
|
||||
"\\_<-?[[:digit:]]+\\(?:_[[:digit:]]\\{3\\}\\)*\\_>"
|
||||
highlight-numbers-modelist)))
|
||||
|
||||
|
||||
(use-package! flycheck-credo
|
||||
|
|
|
@ -43,6 +43,8 @@ This module provides no flags.
|
|||
(in [[file:../../../docs/api.org][docs/api.org]]).
|
||||
+ This module extends imenu support for Doom's API (e.g. ~package!~,
|
||||
~use-package~, ~after!~)
|
||||
+ Flycheck has been configured to tone down the false positives when you are
|
||||
editing your Emacs or Doom config.
|
||||
|
||||
* Prerequisites
|
||||
This module's sole dependency is Emacs. It's very obscure, you wouldn't know
|
||||
|
|
|
@ -222,8 +222,7 @@ verbosity when editing a file in `doom-private-dir' or `doom-emacs-dir'."
|
|||
(or (not default-directory)
|
||||
(cl-find-if (doom-partial #'file-in-directory-p default-directory)
|
||||
+emacs-lisp-disable-flycheck-in-dirs)))
|
||||
(add-to-list (make-local-variable 'flycheck-disabled-checkers)
|
||||
'emacs-lisp-checkdoc)
|
||||
(add-to-list 'flycheck-disabled-checkers 'emacs-lisp-checkdoc)
|
||||
(set (make-local-variable 'flycheck-emacs-lisp-check-form)
|
||||
(concat "(progn "
|
||||
(prin1-to-string
|
||||
|
|
|
@ -12,6 +12,10 @@
|
|||
:config
|
||||
(set-lookup-handlers! 'gdscript-mode
|
||||
:documentation #'gdscript-docs-browse-symbol-at-point)
|
||||
|
||||
(when (featurep! +lsp)
|
||||
(add-hook 'gdscript-mode-local-vars-hook #'lsp!))
|
||||
|
||||
(map! :localleader
|
||||
:map gdscript-mode-map
|
||||
|
||||
|
@ -27,7 +31,4 @@
|
|||
|
||||
(:prefix ("f" . "format")
|
||||
"b" #'gdscript-format-buffer
|
||||
"r" #'gdscript-format-region))
|
||||
|
||||
(when (featurep! +lsp)
|
||||
(add-hook 'gdscript-mode-local-vars-hook #'lsp!)))
|
||||
"r" #'gdscript-format-region)))
|
||||
|
|
|
@ -37,10 +37,14 @@
|
|||
:desc "Tomorrow" "m" #'org-roam-dailies-tomorrow
|
||||
:desc "Yesterday" "y" #'org-roam-dailies-yesterday))
|
||||
:config
|
||||
(setq org-roam-directory (file-name-as-directory (expand-file-name (or org-roam-directory "roam")
|
||||
org-directory))
|
||||
org-roam-verbose nil ; https://youtu.be/fn4jIlFwuLU
|
||||
org-roam-buffer-window-parameters '((no-delete-other-windows . t)) ; make org-roam buffer sticky
|
||||
(setq org-roam-directory
|
||||
(file-name-as-directory
|
||||
(expand-file-name (or org-roam-directory "roam")
|
||||
org-directory))
|
||||
org-roam-verbose nil ; https://youtu.be/fn4jIlFwuLU
|
||||
;; Make org-roam buffer sticky; i.e. don't replace it when opening a
|
||||
;; file with an *-other-window command.
|
||||
org-roam-buffer-window-parameters '((no-delete-other-windows . t))
|
||||
org-roam-completion-system
|
||||
(cond ((featurep! :completion helm) 'helm)
|
||||
((featurep! :completion ivy) 'ivy)
|
||||
|
|
|
@ -92,6 +92,7 @@ The features in this module optionally depend on the following php packages:
|
|||
+ ~boris~ (REPL)
|
||||
+ ~phpctags~ (better code completion)
|
||||
+ ~phpunit~ (unit test commands)
|
||||
+ ~php-cs-fixer~ (for code formatting)
|
||||
|
||||
#+BEGIN_SRC sh
|
||||
composer global require \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue