first version of development extension done

This commit is contained in:
Sameer Rahmani 2015-07-08 23:25:37 +04:30
parent 737bf9edea
commit f29af07050
4 changed files with 23 additions and 2 deletions

View File

@ -8,4 +8,5 @@
** TODO add startup custom buffer for kuso
** TODO add per project configuration support
** TODO configure `package-archive-priorities` so package.el install all packages from elpa first
** TODO add company mode support for flyspell
* Release

View File

@ -31,7 +31,27 @@
(projectile-global-mode)
(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)

View File

@ -17,4 +17,3 @@
:on-initialize extension/editor-initialize)
(provide 'extensions/editor)

View File

@ -38,6 +38,7 @@ to them.
(defmacro extension (name &rest args)
"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))))
(provide 'fg42/extension)