diff --git a/config.el b/config.el index e94fd4c..cde800c 100644 --- a/config.el +++ b/config.el @@ -5,7 +5,10 @@ :init (setq frame-resize-pixelwise t window-resize-pixelwise t - frame-inhibit-implied-resize t) + frame-inhibit-implied-resize t + inhibit-splash-screen t + inhibit-startup-screen t + initial-scratch-message nil) (defun crm-indicator (args) (cons (format "[CRM%s] %s" (replace-regexp-in-string @@ -21,10 +24,7 @@ (menu-bar-mode -1) (tool-bar-mode -1) (scroll-bar-mode -1) - (setq inhibit-splash-screen t - inhibit-startup-screen t - initial-scratch-message nil - enable-recursive-minibuffers t + (setq enable-recursive-minibuffers t read-extended-command-predicate #'command-completion-default-include-p tab-always-indent 'complete) :hook (prog-mode . display-line-numbers-mode)) @@ -32,12 +32,27 @@ (use-package mood-line :hook after-init) -(use-package helm - :bind (("C-x C-f" . helm-find-files) - ("M-x" . helm-M-x) - ("M-s o" . helm-occur) - ("C-h a" . helm-apropos) - ("C-x b" . helm-buffers-list)) +(use-package ivy + :config + (setq ivy-use-virtual-buffers t) + :bind (("C-s" . swiper-isearch) + ("C-c C-r" . ivy-resume) + ("" . ivy-resume) + ("M-x" . counsel-M-x) + ("C-x C-f" . counsel-find-file) + (" f" . counsel-describe-function) + (" v" . counsel-describe-variable) + (" o" . counsel-describe-symbol) + (" l" . counsel-find-library) + (" i" . counsel-info-lookup-symbol) + (" u" . counsel-unicode-char) + ("C-c g" . counsel-git) + ("C-c j" . counsel-git-grep) + ("C-c k" . counsel-ag) + ("C-x l" . counsel-locate) + ("C-S-o" . counsel-rhythmbox) + :map minibuffer-local-map + ("C-r" . counsel-minibuffer-history)) :hook after-init) (use-package savehist diff --git a/lib.nix b/lib.nix index 4bf3c15..68d68f2 100644 --- a/lib.nix +++ b/lib.nix @@ -29,7 +29,9 @@ let inherit (epkgs) spacious-padding mood-line - helm + ivy + counsel + swiper base16-theme nix-mode rust-mode