Skip to content

Commit

Permalink
Merge pull request #152 from emacsorphanage/feat/nix
Browse files Browse the repository at this point in the history
feat: Add Nix support
  • Loading branch information
jcs090218 authored Sep 24, 2024
2 parents 5767f8c + 5a28a06 commit bb0f758
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Revision history for quickrun.el

Version 2.3.1 N/A jcs090218
- Support Deno (b8a9b716a8414c98d3a1ce9267c47c5dbbc7f67b)
- Support Nix (#152)

Version 2.2.8 2017/01/14 syohex
- Support julia (#77)
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ compiling languages(C, C++, Go, Java etc) and markup language.

## Requirements

* Emacs 24.3 or higher.
* Emacs `26.1` or higher.

## Installation

Expand Down Expand Up @@ -96,6 +96,7 @@ as default. But you can register your own command and apply other languages.
* Crystal (`crystal`)
* V (`v`)
* Zig (`zig`)
* Nix (`nix`)

See also `quickrun--support-languages` global variable.

Expand Down Expand Up @@ -180,7 +181,7 @@ You can add your own command or override existsing command by `quickrun-add-com
(quickrun-add-command "c++/c1z"
'((:command . "g++")
(:exec . ("%c -std=c++1z %o -o %e %s"
"%e %a"))
"%e %a"))
(:remove . ("%e")))
:default "c++")
Expand All @@ -193,7 +194,7 @@ You can add your own command or override existsing command by `quickrun-add-com
;; You can override existing command
(quickrun-add-command "c/gcc"
'((:exec . ("%c -std=c++1z %o -o %e %s"
"%e %a")))
"%e %a")))
:override t)
```

Expand Down
5 changes: 4 additions & 1 deletion quickrun.el
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,10 @@ FMT and ARGS passed `message'."
(:description . "Run zig file with Zig program")))
("zig/build" . ((:command . "zig")
(:exec . "%c build run")
(:description . "Run zig file with built-in package manager"))))
(:description . "Run zig file with built-in package manager")))
("nix" . ((:command . "nix")
(:exec . "%c eval --file %s")
(:description . "Evaluate the Nix expression file"))))
"List of each programming languages information.
Parameter form is (\"language\" . parameter-alist). parameter-alist has
5 keys and those values , :command, :exec, :remove.
Expand Down

0 comments on commit bb0f758

Please sign in to comment.