Add counsel-tramp to Emacs

This commit is contained in:
Andreas Zweili 2023-01-16 11:01:51 +01:00
parent 57191c278c
commit 8dcca856d3
2 changed files with 10 additions and 0 deletions

View File

@ -42,6 +42,7 @@
epkgs.company-restclient
epkgs.company-web
epkgs.counsel
epkgs.counsel-tramp
epkgs.deft
epkgs.dired-hide-dotfiles
epkgs.direnv

View File

@ -15,3 +15,12 @@
(global-set-key (kbd "C-c k") 'counsel-ag)
(define-key ivy-minibuffer-map (kbd "S-SPC") (lambda () (interactive) (insert " ")))
(global-set-key (kbd "C-c C-r") 'ivy-resume))
(use-package counsel-tramp
:config
(add-hook 'counsel-tramp-pre-command-hook '(lambda () (global-aggressive-indent-mode 0)
(projectile-mode 0)
(editorconfig-mode 0)))
(add-hook 'counsel-tramp-quit-hook '(lambda () (global-aggressive-indent-mode 1)
(projectile-mode 1)
(editorconfig-mode 1))))