mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
With the former macros' future in the air (and likely to be targeted in future, potentially breaking changes), I'll deal with this now than have it bite me later. Ref: https://lists.gnu.org/archive/html/emacs-devel/2024-10/msg00637.html
30 lines
834 B
EmacsLisp
30 lines
834 B
EmacsLisp
;;; lang/haskell/autoload.el -*- lexical-binding: t; -*-
|
|
|
|
;;;###autoload
|
|
(defun +haskell/open-repl (&optional arg)
|
|
"Opens a Haskell REPL."
|
|
(interactive "P")
|
|
(require 'haskell-interactive-mode)
|
|
(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))
|