diff --git a/modules/module-js.el b/modules/module-js.el index 20bd78a98..2cb11575c 100644 --- a/modules/module-js.el +++ b/modules/module-js.el @@ -17,6 +17,10 @@ ;; Launchbar API "LaunchBar" "File" "Action" "HTTP" "include" "Lib")) + (map! :map js2-mode-map + (:localleader + :n ";" 'narf/append-semicolon)) + (after! web-beautify (add-hook! js2-mode (setenv "jsbeautify_indent_size" "4")) (map! :map js2-mode-map :m "gQ" 'web-beautify-js)) diff --git a/modules/module-php.el b/modules/module-php.el index 61e2083cc..1c7621aab 100644 --- a/modules/module-php.el +++ b/modules/module-php.el @@ -13,6 +13,10 @@ (require 'php-extras) (defun php-extras-company-setup ()) ;; company will set up itself + (map! :map php-mode-map + (:localleader + :n ";" 'narf/append-semicolon)) + ;; Generate php-extras documentation and completion asynchronously (unless (file-exists-p (concat php-extras-eldoc-functions-file ".el")) (async-start `(lambda () diff --git a/modules/module-web.el b/modules/module-web.el index d7fa16a09..ad6809cd7 100644 --- a/modules/module-web.el +++ b/modules/module-web.el @@ -20,6 +20,8 @@ (map! :map scss-mode-map :n "M-r" 'narf/web-refresh-browser + (:localleader + :n ";" 'narf/append-semicolon) (:leader :n ";" 'helm-css-scss :n ":" 'helm-css-scss-multi))