1 ! File: aquamacs.factor
4 ! Description: Another fine Factor file!
5 ! Copyright (C) 2017 Dave Carlton.
6 ! See https://factorcode.org/license.txt for BSD license.
7 USING: editors io.pathnames io.standard-paths kernel make
8 math.parser namespaces sequences system ;
13 HOOK: find-aquamacs-path os ( -- path )
15 M: object find-aquamacs-path f ;
17 M: macosx find-aquamacs-path
18 "org.gnu.Aquamacs" find-native-bundle [
19 "Contents/MacOS/bin/aquamacs" append-path
24 : aquamacs-path ( -- path )
26 find-aquamacs-path [ "aquamacs" ?find-in-path ] unless*
29 M: aquamacs editor-command ( file line -- command )
30 [ aquamacs-path , drop , ] { } make ;