General refactors & reformatting
This commit is contained in:
parent
327d359fd3
commit
213a6fda86
3 changed files with 15 additions and 15 deletions
|
@ -157,7 +157,7 @@ c) are not valid projectile projects."
|
||||||
|
|
||||||
;; Fix breakage on windows in git projects with submodules, since Windows
|
;; Fix breakage on windows in git projects with submodules, since Windows
|
||||||
;; doesn't have tr
|
;; doesn't have tr
|
||||||
((not (executable-find "tr"))
|
(IS-WINDOWS
|
||||||
(setq projectile-git-submodule-command nil)))
|
(setq projectile-git-submodule-command nil)))
|
||||||
|
|
||||||
(defadvice! doom--projectile-cache-timers-a ()
|
(defadvice! doom--projectile-cache-timers-a ()
|
||||||
|
@ -184,12 +184,11 @@ the command instead."
|
||||||
;; Projectile root-searching functions can cause an infinite loop on TRAMP
|
;; Projectile root-searching functions can cause an infinite loop on TRAMP
|
||||||
;; connections, so disable them.
|
;; connections, so disable them.
|
||||||
;; TODO Is this still necessary?
|
;; TODO Is this still necessary?
|
||||||
(defadvice! doom--projectile-locate-dominating-file-a (orig-fn file name)
|
(defadvice! doom--projectile-locate-dominating-file-a (file _name)
|
||||||
"Don't traverse the file system if on a remote connection."
|
"Don't traverse the file system if on a remote connection."
|
||||||
:around #'projectile-locate-dominating-file
|
:before-while #'projectile-locate-dominating-file
|
||||||
(when (and (stringp file)
|
(and (stringp file)
|
||||||
(not (file-remote-p file nil t)))
|
(not (file-remote-p file nil t)))))
|
||||||
(funcall orig-fn file name))))
|
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -167,8 +167,8 @@ This marks a foldable marker for `outline-minor-mode' in elisp buffers.")
|
||||||
(set-yas-minor-mode! 'buttercup-minor-mode)
|
(set-yas-minor-mode! 'buttercup-minor-mode)
|
||||||
(when (featurep 'evil)
|
(when (featurep 'evil)
|
||||||
(add-hook 'buttercup-minor-mode-hook #'evil-normalize-keymaps))
|
(add-hook 'buttercup-minor-mode-hook #'evil-normalize-keymaps))
|
||||||
(map! :map buttercup-minor-mode-map
|
(map! :localleader
|
||||||
:localleader
|
:map buttercup-minor-mode-map
|
||||||
:prefix "t"
|
:prefix "t"
|
||||||
"t" #'+emacs-lisp/buttercup-run-file
|
"t" #'+emacs-lisp/buttercup-run-file
|
||||||
"a" #'+emacs-lisp/buttercup-run-project
|
"a" #'+emacs-lisp/buttercup-run-project
|
||||||
|
|
|
@ -3,10 +3,11 @@
|
||||||
|
|
||||||
(package! haskell-mode)
|
(package! haskell-mode)
|
||||||
|
|
||||||
(cond ((featurep! +dante)
|
(when (featurep! +dante)
|
||||||
(package! dante)
|
(package! dante)
|
||||||
(package! attrap))
|
(package! attrap))
|
||||||
((featurep! +lsp)
|
(when (featurep! +lsp)
|
||||||
(package! lsp-haskell))
|
(package! lsp-haskell))
|
||||||
((featurep! +intero) ; DEPRECATED
|
;; DEPRECATED
|
||||||
(package! intero)))
|
(when (featurep! +intero)
|
||||||
|
(package! intero))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue