Skip to content

burinc/dartclojure.el

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Emacs Interface to DartClojure

Example Usage

  • Convert region of code (in-place editing)

  • Convert a region into clipboard for pasting into main code

  • Convert a region into a scratch buffer that can be quickly reviewed

Installation

  1. Install DartClojure pre-built binary for your OS (Mac/Linux).
  2. Install this Emacs package via your Emacs distribution.

Load it using your preferred Emacs package manager, e.g., for DoomEmacs:

;; packages.el`
(package! dartclojure :recipe (:host github :repo "burinc/dartclojure.el"))

;; config.el
(use-package! dartclojure
  :config 
  (setq dartclojure-opts "-m \"m\" -f \"f\""))

You can also select a region in a file and run M-x dartclojure-to-clipboard to save the result to clipboard.

Remap some of your Emacs keys to make it easier to use. e.g. for Doom Emacs, I use the following:

;; config.el
(map! :leader
      (:prefix ("d" . "dartclojure")
       :desc "dartclojure to buffer"
       "b" #'dartclojure-paste-buffer
       :desc "dartclojure to clipboard"
       "c" #'dartclojure-to-clipboard
       :desc "dartclojure converter"
       "x" #'dartclojure-convert))

So you can type SPC d b, SPC d c, or SPC d x.

Usage

To convert a given region in any buffer into ClojureDart syntax just M-x dartclojure-convert

Links

Releases

No releases published

Packages

No packages published