From 83fe910469db82ee423a57ceaf6dd7eb5d7bf021 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 8 Jun 2016 14:37:01 -0400 Subject: [PATCH] applescript-mode: Enable nlinum-mode + add quickrun command --- core/core-os-osx.el | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/core/core-os-osx.el b/core/core-os-osx.el index 31de3264f..21295e3ef 100644 --- a/core/core-os-osx.el +++ b/core/core-os-osx.el @@ -46,7 +46,15 @@ (use-package applescript-mode :mode "\\.applescript$" - :config (def-docset! applescript-mode "applescript")) + :init (add-hook 'applescript-mode-hook 'nlinum-mode) + :config + (def-docset! applescript-mode "applescript") + (after! quickrundb + (quickrun-add-command + "applescript" `((:command . ,as-osascript-command) + (:cmdopt . "-ss %s") + (:description . "Run applescript")) + :mode 'applescript-mode))) (def-project-type! lb6 "lb6" :match "\\.lb\\(action\\|ext\\)/.+$"