Flycheck moved to editor extension from development.

This commit is contained in:
Sameer Rahmani 2018-01-26 15:37:17 +00:00
parent 378fd479e0
commit 22f8b66284
4 changed files with 71 additions and 53 deletions

View File

@ -3,7 +3,6 @@
(require 'extensions/development/init) (require 'extensions/development/init)
;; Dependencies ---------------------------------- ;; Dependencies ----------------------------------
(depends-on 'flycheck)
(depends-on 'company) (depends-on 'company)
(depends-on 'company-statistics) (depends-on 'company-statistics)
(depends-on 'projectile) (depends-on 'projectile)

View File

@ -155,11 +155,6 @@
(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 'prog-mode-hook 'global-flycheck-mode)
(add-hook 'after-init-hook 'global-flycheck-mode))
(ability spell () (ability spell ()
"Check spell of any word using ispell. This ability may slows you down" "Check spell of any word using ispell. This ability may slows you down"
(global-set-key (kbd "<f2>") 'ispell-word) (global-set-key (kbd "<f2>") 'ispell-word)

View File

@ -46,11 +46,16 @@
(depends-on 'flx-ido)) (depends-on 'flx-ido))
(with-ability helm (with-ability helm
(depends-on 'helm)) (depends-on 'helm)
(depends-on 'helm-ag))
(with-ability swiper (with-ability swiper
(depends-on 'swiper)) (depends-on 'swiper))
(with-ability flycheck
(depends-on 'flycheck))
;; Extension ------------------------------------- ;; Extension -------------------------------------
(extension editor (extension editor
:version "2.31" :version "2.31"

View File

@ -59,14 +59,21 @@
(global-set-key (kbd "C-?") 'cheatsheet-show) (global-set-key (kbd "C-?") 'cheatsheet-show)
;; Remove splash screen ;; Remove splash screen
(setq inhibit-splash-screen t) (setq inhibit-splash-screen t)
;; scratch should be scratch ;; scratch should be scratch
(setq initial-scratch-message nil) (setq initial-scratch-message nil)
(ability spaceline ()
(ability flycheck ()
"Check syntax on the fly using flycheck."
(require 'flycheck)
(add-hook 'prog-mode-hook 'global-flycheck-mode)
(add-hook 'after-init-hook 'global-flycheck-mode))
(ability spaceline (flycheck)
"A really cool mode line alternative which borrowed from awesome spacemacs" "A really cool mode line alternative which borrowed from awesome spacemacs"
(require 'spaceline-config) (require 'spaceline-config)
(require 'extensions/editor/spaceline-alt) (require 'extensions/editor/spaceline-alt)
@ -83,10 +90,10 @@
(spaceline-compile (spaceline-compile
"ati" "ati"
'( '(
((ati-modified ati-window-numbering ati-buffer-size lxdrive) :face highlight-face :skip-alternate t) ((ati-modified ati-window-numbering ati-buffer-size lxdrive) :face highlight-face :skip-alternate t)
((ati-projectile ati-mode-icon ati-buffer-id) :face default-face) ((ati-projectile ati-mode-icon ati-buffer-id) :face default-face)
((ati-process ati-position ati-region-info) :face highlight-face :separator " | ") ((ati-process ati-position ati-region-info) :face highlight-face :separator " | ")
((ati-vc-icon ati-flycheck-status ati-(point)ackage-updates purpose) :separator " · " :face other-face)) ((ati-vc-icon ati-flycheck-status ati-(point)ackage-updates purpose) :separator " · " :face other-face))
;; ((minor-modes) :face default-face) ;; ((minor-modes) :face default-face)
@ -196,58 +203,36 @@
(hs-minor-mode) (hs-minor-mode)
;; Guru Configuration ;; Guru Configuration
(with-ability guru (ability guru ()
(require 'guru-mode) (require 'guru-mode)
(guru-global-mode +1)) (guru-global-mode +1))
;; IDO configurations --------------------------------------------- ;; IDO configurations ---------------------------------------------
(with-ability ido (ability ido ()
(require 'flx-ido) (require 'flx-ido)
(require 'ido-vertical-mode) (require 'ido-vertical-mode)
(ido-everywhere t) (ido-everywhere t)
(ido-ubiquitous-mode 1) (ido-ubiquitous-mode 1)
(ido-mode t) (ido-mode t)
(smex-initialize) (smex-initialize)
(global-set-key (kbd "M-x") 'smex) (global-set-key (kbd "M-x") 'smex)
(flx-ido-mode 1) (flx-ido-mode 1)
(setq ido-use-faces nil) (setq ido-use-faces nil)
(setq ido-use-filename-at-point nil) (setq ido-use-filename-at-point nil)
(setq ido-enable-flex-matching t) (setq ido-enable-flex-matching t)
(ido-vertical-mode 1)) (ido-vertical-mode 1))
;; Helm -----------------------------------------------------
(with-ability helm
(global-set-key (kbd "C-c h") 'helm-command-prefix)
(global-unset-key (kbd "C-x c"))
(define-key helm-map (kbd "<tab>")
'helm-execute-persistent-action)
(define-key helm-map (kbd "C-i")
'helm-execute-persistent-action)
(define-key helm-map (kbd "C-z")
'helm-select-action)
(when (executable-find "curl")
(setq helm-google-suggest-use-curl-p t))
(setq helm-split-window-in-side-p t
helm-move-to-line-cycle-in-source t
helm-ff-search-library-in-sexp t
helm-scroll-amount 8
helm-ff-file-name-history-use-recentf t)
(helm-mode 1))
(ability ivy () (ability ivy ()
"Completion using ivy." "Completion using ivy."
(require 'ivy) (require 'ivy)
(require 'counsel) (require 'counsel)
(ivy-mode 1) (ivy-mode 1)
(setq ivy-use-virtual-buffers t) (setq ivy-use-virtual-buffers t)
(setq enable-recursive-minibuffers t) (setq enable-recursive-minibuffers t)
(global-set-key (kbd "M-x") 'counsel-M-x) (global-set-key (kbd "M-x") 'counsel-M-x)
@ -266,6 +251,40 @@
;; (with-ability ido ;; (with-ability ido
;; (global-set-key (kbd "C-x b") 'ido-switch-buffer))) ;; (global-set-key (kbd "C-x b") 'ido-switch-buffer)))
;; Helm -----------------------------------------------------
(message "zxczxczxczxczxczxczxczxc222222222222")
(ability helm ()
"Helm is an emacs incremental completion and selection narrowing framework"
(require 'helm)
(message "zxczxczxczxczxczxczxczxc")
(global-set-key (kbd "C-c h") 'helm-command-prefix)
(global-set-key (kbd "M-x") 'helm-M-x)
(global-unset-key (kbd "C-x c"))
(define-key helm-map (kbd "<tab>")
'helm-execute-persistent-action)
(define-key helm-map (kbd "C-i")
'helm-execute-persistent-action)
(define-key helm-map (kbd "C-z")
'helm-select-action)
(when (executable-find "curl")
(setq helm-google-suggest-use-curl-p t))
(setq helm-split-window-in-side-p t
helm-move-to-line-cycle-in-source t
helm-ff-search-library-in-sexp t
helm-scroll-amount 8
helm-ff-file-name-history-use-recentf t)
(helm-mode 1))
;; Session Management --------------------------------------- ;; Session Management ---------------------------------------
(ability desktop-mode () (ability desktop-mode ()
"Save your current working buffers and restore later" "Save your current working buffers and restore later"