emacs: a lot of packages removed

Most of the packages are removed since quite
unused. ivy/swiper/counsel combo is substituted by (built-in) ido and
smex. Anything from the list may come back as needed.
This commit is contained in:
Grigory Shipunov 2020-06-08 00:55:35 +02:00
parent 417b846cbc
commit 47bab6f824
No known key found for this signature in database
GPG key ID: 77BB6C3E4771EE7C

73
init.el
View file

@ -74,9 +74,8 @@
(setq indent-tabs-mode t)) (setq indent-tabs-mode t))
(defun tabs-nay () (setq indent-tabs-mode nil)) (defun tabs-nay () (setq indent-tabs-mode nil))
;;wasteland of hooks regarding tabs behaviour ;; wasteland of hooks regarding tabs behavior Remember how it "Just
;;Remember how it "Just worked"™ in vim? ;; worked"™ in vim? That's what you pay with for org mode
;;That's what you pay with for org mode
(add-hook 'prog-mode-hook 'tabs-yay) (add-hook 'prog-mode-hook 'tabs-yay)
(add-hook 'lisp-mode-hook 'tabs-nay) (add-hook 'lisp-mode-hook 'tabs-nay)
(add-hook 'scheme-mode-hook 'tabs-nay) (add-hook 'scheme-mode-hook 'tabs-nay)
@ -86,7 +85,6 @@
(setq show-paren-delay 0) (setq show-paren-delay 0)
(show-paren-mode 1) (show-paren-mode 1)
;; follow symlinks to version-controlled files ;; follow symlinks to version-controlled files
(setq vc-follow-symlinks t) (setq vc-follow-symlinks t)
@ -109,7 +107,15 @@
(straight-use-package 'leuven-theme) (straight-use-package 'leuven-theme)
(straight-use-package 'zenburn-theme) (straight-use-package 'zenburn-theme)
(load-theme 'gruvbox-dark-hard t) (load-theme 'leuven t)
;; better M-x
(straight-use-package 'smex)
(smex-initialize)
(global-set-key (kbd "M-x") 'smex)
(global-set-key (kbd "M-X") 'smex-major-mode-commands)
;; old M-x, just-in-case
(global-set-key (kbd "C-c C-c M-x") 'execute-extended-command)
;; healthy people weeks are starting on Monday ;; healthy people weeks are starting on Monday
(use-package calendar (use-package calendar
@ -129,34 +135,11 @@
:mode ("\\.tex\\'" . latex-mode) :mode ("\\.tex\\'" . latex-mode)
:straight auctex :straight auctex
:config :config
(setq TeX-parse-self t) (setq TeX-parse-self t))
(use-package company-auctex
:straight t
:config
(company-auctex-init)))
(use-package latex-preview-pane (use-package latex-preview-pane
:straight t) :straight t)
(use-package flycheck
:straight t
:config (global-flycheck-mode))
(use-package ivy
:straight t
:demand
:bind (("\C-s" . swiper)
("C-c C-r" . ivy-resume))
:init
(setq ivy-display-style 'fancy)
:config
(ivy-mode 1))
(use-package counsel
:straight t
:config
(counsel-mode 1))
(use-package rainbow-delimiters (use-package rainbow-delimiters
:straight t :straight t
:hook ((emacs-lisp-mode . rainbow-delimiters-mode) :hook ((emacs-lisp-mode . rainbow-delimiters-mode)
@ -219,34 +202,11 @@
:bind (("C-x C-g" . magit-dispatch) :bind (("C-x C-g" . magit-dispatch)
("C-x g" . magit-status))) ("C-x g" . magit-status)))
(use-package gnuplot-mode
:straight t)
(use-package undo-tree (use-package undo-tree
:straight t :straight t
:config :config
(global-undo-tree-mode 1)) (global-undo-tree-mode 1))
(use-package elpy
:straight t
:after flycheck
:hook
(elpy-mode . flycheck-mode)
:config
(setq elpy-modules (delq 'elpy-module-flymake elpy-modules))
(elpy-enable))
(use-package markdown-mode
:straight t
:mode (("README\\.md\\'" . gfm-mode)
("\\.md\\'" . markdown-mode)
("\\.markdown\\'" . markdown-mode))
:init (setq markdown-command "multimarkdown"))
(use-package company
:straight t
:hook ('prog-mode . 'company-mode))
;; I positively cannot spell :D ;; I positively cannot spell :D
(use-package ispell (use-package ispell
:config :config
@ -262,9 +222,6 @@
('log-edit-mode . (lambda () (flyspell-mode -1))) ('log-edit-mode . (lambda () (flyspell-mode -1)))
('prog-mode . 'flyspell-prog-mode))) ('prog-mode . 'flyspell-prog-mode)))
(use-package haskell-mode
:straight t)
(use-package comment-tags (use-package comment-tags
:straight t :straight t
:hook (('prog-mode . 'comment-tags-mode) :hook (('prog-mode . 'comment-tags-mode)
@ -289,6 +246,12 @@
:init :init
(setq geiser-active-implementations '(racket))) (setq geiser-active-implementations '(racket)))
(use-package ido
:config
(setq ido-enable-flex-matching t
ido-everywhere t)
(ido-mode 1))
;; throw away all the list-of-custom-shit! ;; throw away all the list-of-custom-shit!
(setq custom-file "~/.emacs.d/custom.el") (setq custom-file "~/.emacs.d/custom.el")
(load custom-file 'noerror) (load custom-file 'noerror)