forked from FG42/FG42
Jade and guru abilities added.
This commit is contained in:
parent
5ec64ef257
commit
e8693e14b7
|
@ -9,6 +9,10 @@
|
|||
(depends-on 'seq)
|
||||
(depends-on 'ov)
|
||||
(depends-on 'cheatsheet)
|
||||
|
||||
(with-ability guru
|
||||
(depends-on 'guru-mode))
|
||||
|
||||
(with-ability tramp
|
||||
(depends-on 'tramp))
|
||||
|
||||
|
|
|
@ -33,23 +33,19 @@
|
|||
:key "C-?"
|
||||
:description "Show this cheatsheet")
|
||||
(cheatsheet-add :group '--Navigation--
|
||||
:key "s-."
|
||||
:key "M-f"
|
||||
:description "Move a word to right")
|
||||
(cheatsheet-add :group '--Navigation--
|
||||
:key "s-,"
|
||||
:key "M-b"
|
||||
:description "Move a word to left")
|
||||
(cheatsheet-add :group '--Navigation--
|
||||
:key "s-p"
|
||||
:key "M-{"
|
||||
:description "Move back a paragraph")
|
||||
(cheatsheet-add :group '--Navigation--
|
||||
:key "s-n"
|
||||
:key "M-}"
|
||||
:description "Move forward by a paragraph")
|
||||
|
||||
(global-set-key (kbd "C-?") 'cheatsheet-show)
|
||||
(global-set-key (kbd "s-.") 'right-word)
|
||||
(global-set-key (kbd "s-,") 'left-word)
|
||||
(global-set-key (kbd "s-n") 'forward-paragraph)
|
||||
(global-set-key (kbd "s-p") 'backward-paragraph)
|
||||
|
||||
|
||||
;; Remove splash screen
|
||||
|
@ -139,6 +135,11 @@
|
|||
(global-set-key (kbd "C-\-") 'hs-toggle-hiding)
|
||||
(hs-minor-mode)
|
||||
|
||||
;; Guru Configuration
|
||||
(with-ability guru
|
||||
(require 'guru-mode)
|
||||
(guru-global-mode +1))
|
||||
|
||||
;; IDO configurations ---------------------------------------------
|
||||
(with-ability ido
|
||||
(require 'flx-ido)
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
(depends-on 'coffee-mode)
|
||||
(depends-on 'js2-mode)
|
||||
(depends-on 'js2-refactor)
|
||||
(depends-on 'tern)
|
||||
;;(depends-on 'tern)
|
||||
(depends-on 'jade)
|
||||
(depends-on 'company-tern)
|
||||
(depends-on 'jquery-doc)
|
||||
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
;; Functions -------------------------------------------------
|
||||
|
||||
;;;###autoload
|
||||
(defun js2-careless-semicolon ()
|
||||
"Don't give a shit about semicolons. According to javascript's bullshit standard."
|
||||
(interactive)
|
||||
(setq js2-strict-missing-semi-warning nil)
|
||||
(js2-mode))
|
||||
|
||||
;;;###autoload
|
||||
(defun javascript-callback ()
|
||||
(require 'jquery-doc)
|
||||
|
@ -15,6 +23,13 @@
|
|||
"Javascript development plugin initialization."
|
||||
(message "Initializing 'javascript' extension.")
|
||||
|
||||
(ability jade ()
|
||||
(defun init-jade ()
|
||||
(interactive)
|
||||
(require 'jade))
|
||||
(add-hook 'js2-mode-hook #'init-jade)
|
||||
(add-hook 'js2-mode-hook #'jade-interaction-mode))
|
||||
|
||||
(ability javascript-editor ('flycheck)
|
||||
"Gives FG42 the ability to edit javascript."
|
||||
|
||||
|
|
Loading…
Reference in New Issue