dot

packages and services management
Log | Files | Refs | README

commit 78cebd3fa30ff7a4ea8c6b755ef0e5fe3e900eb9
parent 76ecec0b80419599cb97626c0c902b1104ed1982
Author: josuah <mail@josuah.net>
Date:   Mon, 26 Sep 2016 18:37:05 -0400

Maintained Emacs config.

Diffstat:
Memacs/.emacs | 49+++++++++++++------------------------------------
1 file changed, 13 insertions(+), 36 deletions(-)

diff --git a/emacs/.emacs b/emacs/.emacs @@ -56,10 +56,18 @@ (/// "packages") (require 'package) -(add-to-list 'package-archives - '("melpa" . "https://melpa.org/packages/")) +(setq package-list '(ivy)) +(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/")) + (package-initialize) +(unless package-archive-contents + (package-refresh-contents)) + +(dolist (package package-list) + (unless (package-installed-p package) + (package-install package))) + (/// "core settings") @@ -312,7 +320,6 @@ (/// "gnus") - (require 'nnimap) (require 'gnus-mlspl) (require 'nnir) @@ -387,40 +394,10 @@ (global-set-key (kbd "C-c g") 'gnus) -(/// "ido") -(require 'ido) +(/// "ivy") +(require 'ivy) -(setq - ido-decorations '("\n-> " "" "\n " "\n ..." - "[" "]" " [No match]" " [Matched]" - " [Not readable]" " [Too big]" " [Confirm]") - ido-enable-flex-matching t - ido-everywhere t - gnus-completing-read-function 'ido-completing-read - org-completion-use-ido t) - -(add-hook ;C-n/p for vertical layout - 'ido-setup-hook - (lambda () - (define-key ido-completion-map (kbd "C-n") 'ido-next-match) - (define-key ido-completion-map (kbd "C-p") 'ido-prev-match))) - -(defun ido-M-x () - "The missing command for ido." - (interactive) - (call-interactively - (intern (ido-completing-read - "M-x " (all-completions "" obarray 'commandp))))) -(global-set-key "\M-x" 'ido-M-x) - -(defun ido-yank-pop () - "Browse kill ring with ido." - (interactive) - (insert (ido-completing-read - "Yank : " (delete-duplicates kill-ring :test #'equal)))) -(global-set-key (kbd "M-y") 'ido-yank-pop) - -(ido-mode 1) +(ivy-mode) (provide 'init)