This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+lang/reasonml/funcs.el
2020-09-23 21:25:01 +02:00

28 lines
825 B
EmacsLisp

;;; funcs.el --- reasonml layer functions file for Spacemacs
;;
;; Copyright (c) 2012-2020 Sylvain Benner & Contributors
;;
;; Author: Dave Aitken <dave.aitken@gmail.com>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3
(defun reason/rtop-prompt ()
"The rtop prompt function."
(let ((prompt (format "rtop[%d]> " utop-command-number)))
(add-text-properties 0 (length prompt) '(face utop-prompt) prompt)
prompt))
(defun reason/refmt-re-to-ml ()
(interactive)
(if (use-region-p)
(apply-refmt (region-beginning) (region-end) "re" "ml")
(apply-refmt nil nil "re" "ml")))
(defun reason/refmt-ml-to-re ()
(interactive)
(if (use-region-p)
(apply-refmt (region-beginning) (region-end) "ml" "re")
(apply-refmt nil nil "ml" "re")))