doomemacs/modules/lang/haskell/autoload.el
Henrik Lissner 616956ac94 fix(haskell): remove evil-digit-argument-evil-beginning-of-line call
evil-digit motions were refactored in emacs-evil/evil#1519 (where
evil-digit-argument-evil-beginning-of-line was removed), which was
pulled in during 8645634608.

Fix: #5731
Ref: 8645634608
Ref: emacs-evil/evil#1519
2021-11-21 16:10:49 +01:00

28 lines
789 B
EmacsLisp

;;; lang/haskell/autoload.el -*- lexical-binding: t; -*-
;;;###autoload
(defun +haskell/open-repl (&optional arg)
"Opens a Haskell REPL."
(interactive "P")
(if-let (window
(display-buffer
(haskell-session-interactive-buffer (haskell-session))))
(window-buffer window)
(error "Failed to display Haskell REPL")))
;;;###autoload
(defun +haskell/evil-open-above ()
"Opens a line above the current mode"
(interactive)
(evil-beginning-of-line)
(haskell-indentation-newline-and-indent)
(evil-previous-line)
(haskell-indentation-indent-line)
(evil-append-line nil))
;;;###autoload
(defun +haskell/evil-open-below ()
"Opens a line below the current mode"
(interactive)
(evil-append-line nil)
(haskell-indentation-newline-and-indent))