diff options
author | Alan Pearce | 2016-09-20 08:26:06 +0200 |
---|---|---|
committer | Alan Pearce | 2016-09-20 08:26:23 +0200 |
commit | 6f17aaee8d4e88db54d27ff8d59ab6c9a5935f78 (patch) | |
tree | 511f16cc5bfc84cc417b9a5489777f8b43a7c0b3 | |
parent | de2b3f63d42df53215727a8032b81887c1ea01bc (diff) | |
download | dotfiles-6f17aaee8d4e88db54d27ff8d59ab6c9a5935f78.tar.lz dotfiles-6f17aaee8d4e88db54d27ff8d59ab6c9a5935f78.tar.zst dotfiles-6f17aaee8d4e88db54d27ff8d59ab6c9a5935f78.zip |
Emacs: Replace helm history commands with counsel
-rw-r--r-- | tag-emacs/emacs.d/init.org | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org index f1011e8..76743a6 100644 --- a/tag-emacs/emacs.d/init.org +++ b/tag-emacs/emacs.d/init.org @@ -1198,8 +1198,8 @@ Occasionally, I exit emacs. I should probably reduce the frequency of this. ** swiper/ivy -Ivy is the new kid on the completion block. I wonder if it can -replace helm and ido. +Ivy is the new kid on the completion block. It seems to be a strong +replacement for helm so far. #+BEGIN_SRC emacs-lisp (use-package swiper @@ -2026,28 +2026,28 @@ nice, when I remember to use it. #+BEGIN_SRC emacs-lisp (use-package eshell - :bind ("C-c s" . eshell) - :config (progn - (setq eshell-directory-name "~/.emacs.d/eshell") - (add-hook 'eshell-load-hook (lambda () - (bind-key "C-c C-l" #'helm-eshell-history eshell-mode-map))))) + :bind ("C-c s" . eshell) + :config (progn + (setq eshell-directory-name "~/.emacs.d/eshell") + (add-hook 'eshell-load-hook (lambda () + (bind-key "C-c C-l" #'counsel-esh-history eshell-mode-map))))) (use-package em-smart - :ensure nil - :commands eshell-smart-initialize - :init (progn - (add-hook 'eshell-load-hook #'eshell-smart-initialize)) - :config (progn - (setq eshell-where-to-jump 'begin - eshell-review-quick-commands nil - eshell-smart-space-goes-to-end t))) + :ensure nil + :commands eshell-smart-initialize + :init (progn + (add-hook 'eshell-load-hook #'eshell-smart-initialize)) + :config (progn + (setq eshell-where-to-jump 'begin + eshell-review-quick-commands nil + eshell-smart-space-goes-to-end t))) (autoload #'eshell/cd "em-dirs") (defun eshell-goto-current-dir (&optional arg) - (interactive "P") - (let ((dir default-directory)) - (eshell arg) - (eshell/cd dir))) + (interactive "P") + (let ((dir default-directory)) + (eshell arg) + (eshell/cd dir))) (bind-key "C-c S" #'eshell-goto-current-dir) @@ -2057,21 +2057,21 @@ nice, when I remember to use it. #+BEGIN_SRC emacs-lisp (use-package shell - :defer t - :ensure nil - :config (define-key shell-mode-map - (kbd "C-d") 'comint-delchar-or-eof-or-kill-buffer)) + :defer t + :ensure nil + :config (define-key shell-mode-map + (kbd "C-d") 'comint-delchar-or-eof-or-kill-buffer)) (use-package comint - :defer t - :ensure nil - :config (bind-key "C-c C-l" #'helm-comint-input-ring comint-mode-map)) + :defer t + :ensure nil + :config (bind-key "C-c C-l" #'counsel-shell-history comint-mode-map)) (defun comint-delchar-or-eof-or-kill-buffer (arg) - (interactive "p") - (if (null (get-buffer-process (current-buffer))) - (kill-buffer) - (comint-delchar-or-maybe-eof arg))) + (interactive "p") + (if (null (get-buffer-process (current-buffer))) + (kill-buffer) + (comint-delchar-or-maybe-eof arg))) #+END_SRC * Text editing |