forked from FG42/FG42
first version of development extension done
This commit is contained in:
parent
737bf9edea
commit
f29af07050
1
TODO.org
1
TODO.org
|
@ -8,4 +8,5 @@
|
||||||
** TODO add startup custom buffer for kuso
|
** TODO add startup custom buffer for kuso
|
||||||
** TODO add per project configuration support
|
** TODO add per project configuration support
|
||||||
** TODO configure `package-archive-priorities` so package.el install all packages from elpa first
|
** TODO configure `package-archive-priorities` so package.el install all packages from elpa first
|
||||||
|
** TODO add company mode support for flyspell
|
||||||
* Release
|
* Release
|
||||||
|
|
|
@ -31,7 +31,27 @@
|
||||||
(projectile-global-mode)
|
(projectile-global-mode)
|
||||||
(setq projectile-enable-caching t))
|
(setq projectile-enable-caching t))
|
||||||
|
|
||||||
|
(ability flycheck ()
|
||||||
|
"Check syntax on the fly using flycheck."
|
||||||
|
(add-hook 'after-init-hook 'global-flycheck-mode))
|
||||||
|
|
||||||
|
(ability spell ()
|
||||||
|
"Check spell of any word using ispell."
|
||||||
|
(require 'flyspell)
|
||||||
|
(setq flyspell-issue-message-flg nil))
|
||||||
|
|
||||||
|
(ability diff-highlight
|
||||||
|
"Highlight the diffs based on VCS."
|
||||||
|
(add-hook 'prog-mode-hook 'turn-on-diff-hl-mode)
|
||||||
|
(add-hook 'vc-dir-mode-hook 'turn-on-diff-hl-mode))
|
||||||
|
|
||||||
|
(ability auto-pair
|
||||||
|
"Auto pair stuffs like brackets begin/ends etc."
|
||||||
|
(electric-pair-mode))
|
||||||
|
|
||||||
|
(ability indent-guide
|
||||||
|
"Show indent guides."
|
||||||
|
(indent-guide-global-mode)
|
||||||
|
(set-face-foreground 'indent-guide-face "#bbb")))
|
||||||
|
|
||||||
)
|
|
||||||
(provide 'extensions/development/init)
|
(provide 'extensions/development/init)
|
||||||
|
|
|
@ -17,4 +17,3 @@
|
||||||
:on-initialize extension/editor-initialize)
|
:on-initialize extension/editor-initialize)
|
||||||
|
|
||||||
(provide 'extensions/editor)
|
(provide 'extensions/editor)
|
||||||
|
|
||||||
|
|
|
@ -38,6 +38,7 @@ to them.
|
||||||
|
|
||||||
(defmacro extension (name &rest args)
|
(defmacro extension (name &rest args)
|
||||||
"A simple DSL to define new fg42 extension."
|
"A simple DSL to define new fg42 extension."
|
||||||
|
;(declare (doc-string 1) (indent 1))
|
||||||
`(setq ,name (apply 'make-fg42-extension :name ,(symbol-name name) (quote ,args))))
|
`(setq ,name (apply 'make-fg42-extension :name ,(symbol-name name) (quote ,args))))
|
||||||
|
|
||||||
(provide 'fg42/extension)
|
(provide 'fg42/extension)
|
||||||
|
|
Loading…
Reference in New Issue