forked from FG42/FG42
cheatsheet mode added for documentation. pt replaced ag, neotree replaced direx
This commit is contained in:
parent
c6756d1c55
commit
776a77f0d0
|
@ -1,12 +0,0 @@
|
||||||
(require 'cask "~/.cask/cask.el")
|
|
||||||
(cask-initialize)
|
|
||||||
|
|
||||||
(add-to-list 'load-path "--PATH--/kuso.d")
|
|
||||||
|
|
||||||
(setq developer-name "--FULLNAME--")
|
|
||||||
(setq developer-email "--EMAIL--")
|
|
||||||
(setq kuso-workspace "--WORKSPACE--")
|
|
||||||
|
|
||||||
;; Uncomment this line if you want to debug an error
|
|
||||||
;; (toggle-debug-on-error)
|
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
(add-to-list 'load-path (concat (getenv "FG42_HOME") "/lib"))
|
(add-to-list 'load-path (concat (getenv "FG42_HOME") "/lib"))
|
||||||
;(toggle-debug-on-error)
|
(toggle-debug-on-error)
|
||||||
(require 'fg42)
|
(require 'fg42)
|
||||||
|
|
||||||
;; Load the default theme
|
;; Load the default theme
|
||||||
(theme themes/color-theme-monokai)
|
(theme themes/color-theme-monokai)
|
||||||
|
|
||||||
;; Disable abilities which we do not want to load
|
;; Disable abilities which we do not want to load
|
||||||
(disable 'rbenv 'helm)
|
(disable 'rbenv 'helm 'swiper)
|
||||||
|
|
||||||
;; Activate these extensions
|
;; Activate these extensions
|
||||||
(activate-extensions 'editor
|
(activate-extensions 'editor
|
||||||
|
|
|
@ -11,12 +11,15 @@
|
||||||
(depends-on 'magit)
|
(depends-on 'magit)
|
||||||
(depends-on 'indent-guide)
|
(depends-on 'indent-guide)
|
||||||
(depends-on 'yasnippet)
|
(depends-on 'yasnippet)
|
||||||
(depends-on 'direx)
|
|
||||||
(depends-on 'popwin)
|
|
||||||
(depends-on 'ag)
|
|
||||||
(depends-on 'hl-sexp)
|
(depends-on 'hl-sexp)
|
||||||
(depends-on 'smart-mode-line)
|
(depends-on 'smart-mode-line)
|
||||||
|
|
||||||
|
(with-ability code-browser
|
||||||
|
(depends-on 'neotree))
|
||||||
|
|
||||||
|
(with-ability pt
|
||||||
|
(depends-on 'pt))
|
||||||
|
|
||||||
(with-ability spell
|
(with-ability spell
|
||||||
(depends-on 'flyspell))
|
(depends-on 'flyspell))
|
||||||
;; TODO: Add flycheck-color-modebar
|
;; TODO: Add flycheck-color-modebar
|
||||||
|
|
|
@ -24,6 +24,12 @@
|
||||||
(insert (current-kill 0)))))
|
(insert (current-kill 0)))))
|
||||||
|
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
|
(defun enable-pt-search ()
|
||||||
|
(interactive)
|
||||||
|
(define-key projectile-mode-map (kbd "C-c p s s") 'projectile-pt)
|
||||||
|
(define-key projectile-mode-map (kbd "C-c p s r") 'pt-regexp))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun extension/development-initialize ()
|
(defun extension/development-initialize ()
|
||||||
"Development plugin initialization."
|
"Development plugin initialization."
|
||||||
|
@ -95,18 +101,20 @@
|
||||||
|
|
||||||
(ability code-browser ()
|
(ability code-browser ()
|
||||||
"Adds the code browser to FG42."
|
"Adds the code browser to FG42."
|
||||||
(autoload 'direx "direx" "Simple code browser.")
|
(require 'neotree)
|
||||||
(require 'popwin)
|
(global-set-key [f8] 'neotree-toggle))
|
||||||
(popwin-mode t)
|
|
||||||
|
|
||||||
(push '(direx:direx-mode :position left :width 30 :dedicated t)
|
(ability pt ()
|
||||||
popwin:special-display-config)
|
"Provides fast search ability via platinium search"
|
||||||
(global-set-key (kbd "C-c q") 'direx-project:jump-to-project-root-other-window))
|
(require 'pt)
|
||||||
|
(cheatsheet-add :group 'Development
|
||||||
|
:key "C-c p s s"
|
||||||
|
:description "Search within a project using pt. It's fast.")
|
||||||
|
|
||||||
(ability fast-search ()
|
(cheatsheet-add :group 'Development
|
||||||
"Provides fast search ability via silver search"
|
:key "C-c p s r"
|
||||||
(setq ag-reuse-window 't)
|
:description "Search for a regexp in a project.")
|
||||||
(setq ag-highlight-search t))
|
(add-hook 'projectile-mode-hook 'enable-pt-search))
|
||||||
|
|
||||||
(ability smart-mode-line ()
|
(ability smart-mode-line ()
|
||||||
"Smarter modeline for FG42"
|
"Smarter modeline for FG42"
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
(depends-on 'dired+)
|
(depends-on 'dired+)
|
||||||
(depends-on 'seq)
|
(depends-on 'seq)
|
||||||
(depends-on 'ov)
|
(depends-on 'ov)
|
||||||
|
(depends-on 'cheatsheet)
|
||||||
|
|
||||||
(with-ability ido
|
(with-ability ido
|
||||||
(depends-on 'ido)
|
(depends-on 'ido)
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
"Base plugin initialization."
|
"Base plugin initialization."
|
||||||
(message "Initializing 'editor' extension.")
|
(message "Initializing 'editor' extension.")
|
||||||
|
|
||||||
|
(require 'cheatsheet)
|
||||||
(require 'extensions/editor/utils)
|
(require 'extensions/editor/utils)
|
||||||
|
|
||||||
;; Remove splash screen
|
;; Remove splash screen
|
||||||
|
|
Loading…
Reference in New Issue