Remove module-lb6.el, add lib-plugin.el
This commit is contained in:
parent
8cef9b08d5
commit
0980febb2f
2 changed files with 35 additions and 13 deletions
35
modules/lib-plugin.el
Normal file
35
modules/lib-plugin.el
Normal file
|
@ -0,0 +1,35 @@
|
|||
;;; lib-plugin.el
|
||||
|
||||
(defun narf-lb6-reload ()
|
||||
(interactive)
|
||||
(let ((dir (f-traverse-upwards (lambda (f) (string-suffix-p ".lbaction" f)))))
|
||||
(shell-command (format "open %s" dir))))
|
||||
|
||||
(define-minor-mode lb6-mode
|
||||
"Launchbar development mode."
|
||||
:init-value nil
|
||||
:lighter " lb6"
|
||||
:keymap (let ((map (make-sparse-keymap)))
|
||||
(map! :map map
|
||||
(:localleader
|
||||
:n "b" 'narf-lb6-reload))
|
||||
map)
|
||||
(add-yas-minor-mode! 'lb6-mode))
|
||||
(associate! lb6-mode :match "\\.lb\\(action\\|ext\\)/.+$")
|
||||
|
||||
;;
|
||||
|
||||
(define-minor-mode hammerspoon-mode
|
||||
:init-value nil
|
||||
:lighter " hammer"
|
||||
:keymap (let ((map ))
|
||||
(map! :map map
|
||||
(:localleader
|
||||
:n "b" (λ! (shell-command (format "open hammerspoon://reload")))))
|
||||
map)
|
||||
(add-yas-minor-mode! 'hammerspoon-mode))
|
||||
(associate! hammerspoon-mode :match "/\\.?hammerspoon/.+\\.lua$")
|
||||
|
||||
(provide 'lib-plugin)
|
||||
;;; lib-plugin.el ends here
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
;;; module-lb6.el
|
||||
|
||||
(define-minor-mode lb6-mode
|
||||
"Launchbar development mode."
|
||||
:init-value nil
|
||||
:lighter " lb6"
|
||||
:keymap (make-sparse-keymap)
|
||||
(add-yas-minor-mode! 'lb6-mode))
|
||||
(associate! lb6-mode :match "\\.lb\\(action\\|ext\\)/.*$")
|
||||
|
||||
(provide 'module-lb6)
|
||||
;;; module-lb6.el ends here
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue