From a4b253f94a4bbcfe43260ddf9206c9d8784e0427 Mon Sep 17 00:00:00 2001 From: Dave Carlton Date: Fri, 12 Aug 2022 08:50:55 -0500 Subject: [PATCH] Added aquamacs editor (cherry picked from commit 14c0a2f30235c69322a61aa3b4fc992fd09ce70b) (cherry picked from commit e638daddbe3cd9bbeef4c8cfaf37e319680bb48c) --- basis/editors/aquamacs/aquamacs.factor | 27 ++++++++++++++++++++++++++ basis/editors/aquamacs/authors.txt | 1 + 2 files changed, 28 insertions(+) create mode 100644 basis/editors/aquamacs/aquamacs.factor create mode 100644 basis/editors/aquamacs/authors.txt diff --git a/basis/editors/aquamacs/aquamacs.factor b/basis/editors/aquamacs/aquamacs.factor new file mode 100644 index 0000000000..b058d762a1 --- /dev/null +++ b/basis/editors/aquamacs/aquamacs.factor @@ -0,0 +1,27 @@ +! File: aquamacs.factor +! Version: 0.1 +! DRI: Dave Carlton +! Description: Another fine Factor file! +! Copyright (C) 2017 Dave Carlton. +! See http://factorcode.org/license.txt for BSD license. + +USING: combinators.short-circuit editors io.standard-paths +kernel make math.parser namespaces sequences system ; +IN: editors.aquamacs + +SINGLETON: aquamacs +aquamacs editor-class set-global + +HOOK: find-aquamacs os ( -- path ) + +M: object find-aquamacs ( -- path ) + "aquamacs" ?find-in-path ; + +M: aquamacs editor-command ( file line -- command ) + drop + [ + "/Applications/Aquamacs.app/Contents/MacOS/bin/aquamacs" , + , + ] { } make + ; + diff --git a/basis/editors/aquamacs/authors.txt b/basis/editors/aquamacs/authors.txt new file mode 100644 index 0000000000..0c9e056e62 --- /dev/null +++ b/basis/editors/aquamacs/authors.txt @@ -0,0 +1 @@ +Dave Carlton -- 2.34.1