magit key binding added. projectile-ag redefined with projectile-pt
This commit is contained in:
parent
42a94f73a7
commit
0b8909d8fb
|
@ -23,7 +23,6 @@
|
|||
(error (message "Invalid expression")
|
||||
(insert (current-kill 0)))))
|
||||
|
||||
|
||||
;;;###autoload
|
||||
(defun enable-pt-search ()
|
||||
(interactive)
|
||||
|
@ -52,7 +51,7 @@
|
|||
:description "Jump to previous bookmark")
|
||||
|
||||
(global-set-key (kbd "M-p") 'bm-toggle)
|
||||
(global-set-key (kbd "M-]") 'bm-next)
|
||||
(global-set-key (kbd "M-]") 'bm-next)
|
||||
(global-set-key (kbd "M-[") 'bm-previous)
|
||||
|
||||
(setq bm-in-lifo-order t)
|
||||
|
@ -66,6 +65,13 @@
|
|||
(bm-buffer-save-all)
|
||||
(bm-repository-save))))
|
||||
|
||||
(ability git ()
|
||||
"A wonderful git interface for FG42"
|
||||
(cheatsheet-add :group '--Development--
|
||||
:key "C-x g"
|
||||
:description "Rise up MAGIT. Git interface for FG42")
|
||||
(global-set-key (kbd "C-x g") 'magit-status))
|
||||
1
|
||||
(ability hl ()
|
||||
"Highligh the current block of code"
|
||||
(require 'hl-sexp)
|
||||
|
@ -210,6 +216,7 @@
|
|||
(cheatsheet-add :group '--Development--
|
||||
:key "C-c p s r"
|
||||
:description "Search for a regexp in a project.")
|
||||
(advice-add 'projectile-ag :around #'projectile-pt)
|
||||
(add-hook 'projectile-mode-hook 'enable-pt-search))
|
||||
|
||||
(ability file-browser ()
|
||||
|
|
|
@ -11,8 +11,7 @@
|
|||
(depends-on 'cheatsheet)
|
||||
|
||||
(with-ability ivy
|
||||
(depends-on 'ivy)
|
||||
(depends-on 'counsel))
|
||||
(depends-on 'ivy))
|
||||
|
||||
(with-ability ido
|
||||
(depends-on 'ido)
|
||||
|
|
|
@ -150,13 +150,7 @@
|
|||
(ivy-mode 1)
|
||||
|
||||
(setq ivy-use-virtual-buffers t)
|
||||
(global-set-key (kbd "C-c C-r") 'ivy-resume)
|
||||
(global-set-key (kbd "M-x") 'counsel-M-x)
|
||||
(global-set-key (kbd "<f1> f") 'counsel-describe-function)
|
||||
(global-set-key (kbd "<f1> v") 'counsel-describe-variable)
|
||||
(global-set-key (kbd "<f1> l") 'counsel-load-library)
|
||||
(global-set-key (kbd "<f2> i") 'counsel-info-lookup-symbol)
|
||||
(global-set-key (kbd "<f2> u") 'counsel-unicode-char))
|
||||
(global-set-key (kbd "C-c C-r") 'ivy-resume))
|
||||
|
||||
;; Swiper ---------------------------------------------------
|
||||
(ability swiper (ivy)
|
||||
|
|
Loading…
Reference in New Issue