Add '\;' append-semicolon command to php, js and scss
This commit is contained in:
parent
4e5bc942c8
commit
ddcbe73e98
3 changed files with 10 additions and 0 deletions
|
@ -17,6 +17,10 @@
|
||||||
;; Launchbar API
|
;; Launchbar API
|
||||||
"LaunchBar" "File" "Action" "HTTP" "include" "Lib"))
|
"LaunchBar" "File" "Action" "HTTP" "include" "Lib"))
|
||||||
|
|
||||||
|
(map! :map js2-mode-map
|
||||||
|
(:localleader
|
||||||
|
:n ";" 'narf/append-semicolon))
|
||||||
|
|
||||||
(after! web-beautify
|
(after! web-beautify
|
||||||
(add-hook! js2-mode (setenv "jsbeautify_indent_size" "4"))
|
(add-hook! js2-mode (setenv "jsbeautify_indent_size" "4"))
|
||||||
(map! :map js2-mode-map :m "gQ" 'web-beautify-js))
|
(map! :map js2-mode-map :m "gQ" 'web-beautify-js))
|
||||||
|
|
|
@ -13,6 +13,10 @@
|
||||||
(require 'php-extras)
|
(require 'php-extras)
|
||||||
(defun php-extras-company-setup ()) ;; company will set up itself
|
(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
|
;; Generate php-extras documentation and completion asynchronously
|
||||||
(unless (file-exists-p (concat php-extras-eldoc-functions-file ".el"))
|
(unless (file-exists-p (concat php-extras-eldoc-functions-file ".el"))
|
||||||
(async-start `(lambda ()
|
(async-start `(lambda ()
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
|
|
||||||
(map! :map scss-mode-map
|
(map! :map scss-mode-map
|
||||||
:n "M-r" 'narf/web-refresh-browser
|
:n "M-r" 'narf/web-refresh-browser
|
||||||
|
(:localleader
|
||||||
|
:n ";" 'narf/append-semicolon)
|
||||||
(:leader
|
(:leader
|
||||||
:n ";" 'helm-css-scss
|
:n ";" 'helm-css-scss
|
||||||
:n ":" 'helm-css-scss-multi))
|
:n ":" 'helm-css-scss-multi))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue