Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;; Added by Package.el. This must come before configurations of
- ;; installed packages. Don't delete this line. If you don't want it,
- ;; just comment it out by adding a semicolon to the start of the line.
- ;; You may delete these explanatory comments.
- (package-initialize)
- (setq package-archives
- '(("gnu" . "https://elpa.gnu.org/packages/")
- ("melpa-stable" . "https://stable.melpa.org/packages/")
- ("melpa" . "https://melpa.org/packages/")))
- (custom-set-variables
- ;; custom-set-variables was added by Custom.
- ;; If you edit it by hand, you could mess it up, so be careful.
- ;; Your init file should contain only one such instance.
- ;; If there is more than one, they won't work right.
- '(ansi-color-names-vector
- ["#000000" "#8b0000" "#00ff00" "#ffa500" "#7b68ee" "#dc8cc3" "#93e0e3" "#dcdccc"])
- '(custom-safe-themes
- (quote
- ("a56a6bf2ecb2ce4fa79ba636d0a5cf81ad9320a988ec4e55441a16d66b0c10e0" default)))
- '(fci-rule-color "#383838")
- '(line-number-mode nil)
- '(package-selected-packages
- (quote
- (flx swiper ivy-rich ivy counsel esup profile-dotemacs rainbow-delimiters cyberpunk-theme avy evil-escape evil evil-collection evil-commentary use-package which-key planet-theme eziam-theme)))
- '(pdf-view-midnight-colors (quote ("#ffffff" . "#222222")))
- '(vc-annotate-background "#222222"))
- (server-start)
- (require 'use-package)
- (setq use-package-always-ensure t)
- (setq scheme-program-name "/usr/local/bin/racket")
- (setq backup-directory-alist
- '(("." . "~/.emacs.d/backups")))
- (menu-bar-mode -1)
- (tool-bar-mode -1)
- (load-theme 'planet t)
- ;; evil
- (use-package evil
- :defer t
- :init
- (setq evil-want-integration nil)
- :config
- (evil-mode 1))
- (use-package evil-collection
- :after evil
- :config
- (evil-collection-init))
- (use-package evil-commentary
- :after evil
- :config
- (evil-commentary-mode))
- (use-package evil-escape
- :after evil
- :config
- (evil-escape-mode)
- (setq-default evil-escape-key-sequence "jk"))
- (use-package evil-leader
- :after evil
- :config
- (global-evil-leader-mode)
- (evil-leader/set-leader "<SPC>"))
- ;; ivy
- (use-package counsel
- :after ivy
- :config (counsel-mode))
- (use-package ivy
- :defer 0.1
- :diminish
- :bind (("C-c C-r" . ivy-resume)
- ("C-x B" . ivy-switch-buffer-other-window))
- :custom
- (ivy-count-format "(%d/%d) ")
- (ivy-display-style 'fancy)
- (ivy-use-virtual-buffers t)
- ;; match anywhere in a name (default is match regex on beginning)
- ;; the next two lines may cause annoying behavior
- (ivy-initial-inputs-alist nil)
- ;; match multiple regex w/o spaces required
- (ivy-re-builders-alist
- '((t . ivy--regex-fuzzy)))
- :config (ivy-mode))
- (use-package ivy-rich
- :after ivy
- :custom
- (ivy-virtual-abbreviate 'full
- ivy-rich-switch-buffer-align-virtual-buffer t
- ivy-rich-path-style 'abbrev)
- :config
- (ivy-set-display-transformer 'ivy-switch-buffer
- 'ivy-rich-switch-buffer-transformer))
- (use-package swiper
- :after ivy
- :bind (("C-s" . swiper)
- ("C-r" . swiper)))
- ;; other packages
- (use-package avy
- :config
- (setq avy-style 'at-full)
- (setq avy-background 1)
- (setq avy-all-windows nil))
- (use-package esup)
- (use-package flx)
- (use-package rainbow-delimiters
- :config
- (rainbow-delimiters-mode))
- (use-package which-key
- :config
- (which-key-mode)
- (which-key-setup-side-window-right-bottom))
- (evil-leader/set-key
- ;; avy
- "aj" 'avy-goto-word-1
- "al" 'avy-goto-line
- "aw" 'avy-goto-word-0
- ;; buffer
- "bb" 'switch-to-buffer
- "bk" 'kill-buffer
- "bo" 'ivy-switch-buffer-other-window
- ;; eval
- "eb" 'eval-buffer
- "ef" 'eval-defun
- "el" 'eval-last-sexp
- "er" 'eval-region
- ;; misc
- "f" 'find-file
- "p" 'esup
- "s" 'run-scheme
- ;; window selection
- "h" 'evil-window-left
- "j" 'evil-window-down
- "k" 'evil-window-up
- "l" 'evil-window-right
- ;; window control
- "wb" 'balance-windows
- "wd" 'delete-window
- "ws" 'split-window-right
- "wv" 'split-window-below)
- (custom-set-faces
- ;; custom-set-faces was added by Custom.
- ;; If you edit it by hand, you could mess it up, so be careful.
- ;; Your init file should contain only one such instance.
- ;; If there is more than one, they won't work right.
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement