Added hungry delete and Improved haskell experience
This commit is contained in:
@@ -9,6 +9,14 @@
|
||||
(setq electric-pair-inhibit-predicate 'electric-pair-conservative-inhibit)
|
||||
(electric-pair-mode t)
|
||||
|
||||
;; Hungry deletion
|
||||
(use-package hungry-delete
|
||||
:diminish
|
||||
:hook (elpaca-after-init . global-hungry-delete-mode)
|
||||
:init (setq hungry-delete-chars-to-skip " \t\f\v"
|
||||
hungry-delete-except-modes
|
||||
'(help-mode minibuffer-mode minibuffer-inactive-mode calc-mode)))
|
||||
|
||||
;; Yasnippet settings
|
||||
(use-package yasnippet
|
||||
:ensure t
|
||||
|
||||
@@ -2,15 +2,18 @@
|
||||
|
||||
|
||||
(use-package haskell-mode
|
||||
:hook (haskell-mode . (haskell-collapse-mode
|
||||
interactive-haskell-mode
|
||||
haskell-doc-mode
|
||||
hindent-mode))
|
||||
:hook (haskell-mode . (lambda ()
|
||||
(haskell-collapse-mode)
|
||||
(interactive-haskell-mode)
|
||||
(haskell-doc-mode)
|
||||
(haskell-indent-mode)))
|
||||
:mode (("\\.hs\\'" . haskell-mode))
|
||||
:bind ("C-c C-z" . run-haskell)
|
||||
:config
|
||||
(setq haskell-process-suggest-remove-import-lines t
|
||||
haskell-process-auto-import-loaded-modules t)
|
||||
(add-to-list 'completion-ignored-extensions ".hi"))
|
||||
(add-to-list 'completion-ignored-extensions ".hi")
|
||||
(add-hook 'haskell-mode-hook #'eglot-ensure))
|
||||
|
||||
|
||||
(provide 'init-haskell)
|
||||
|
||||
@@ -112,13 +112,15 @@
|
||||
"\\*vc-.*\\**"
|
||||
"\\*diff-hl\\**"
|
||||
"^\\*macro expansion\\**"
|
||||
|
||||
|
||||
"\\*Agenda Commands\\*" "\\*Org Select\\*" "\\*Capture\\*" "^CAPTURE-.*\\.org*"
|
||||
"\\*Gofmt Errors\\*$" "\\*Go Test\\*$" godoc-mode
|
||||
"\\*docker-.+\\*"
|
||||
"\\*prolog\\*" inferior-python-mode inf-ruby-mode swift-repl-mode
|
||||
"\\*rustfmt\\*$" rustic-compilation-mode rustic-cargo-clippy-mode
|
||||
rustic-cargo-outdated-mode rustic-cargo-run-mode rustic-cargo-test-mode))
|
||||
rustic-cargo-outdated-mode rustic-cargo-run-mode rustic-cargo-test-mode
|
||||
"\\*haskell\\*"))
|
||||
|
||||
:config
|
||||
(with-no-warnings
|
||||
(defun my-popper-fit-window-height (win)
|
||||
|
||||
Reference in New Issue
Block a user