Changeset beb39dd in dotfiles


Ignore:
Timestamp:
Jan 25, 2020, 7:07:44 AM (5 years ago)
Author:
Mikhail Kirillov <w96k@…>
Branches:
master
Children:
c3016ec
Parents:
1dff69f
Message:

delete ivy; install helm; Massive cleanup;

File:
1 edited

Legend:

Unmodified
Added
Removed
  • emacs/.emacs

    r1dff69f rbeb39dd  
    55
    66;;;; INIT
     7
     8;;; -*- lexical-binding: t; -*-
    79
    810(eval-when-compile
     
    4850  :config
    4951  (setq use-package-verbose t)
    50   (setq use-package-always-defer t)
     52  (setq use-package-always-defer nil)
    5153  (setq use-package-always-ensure t))
    5254
     
    7476
    7577;;; Set Theme
    76 (use-package color-theme-sanityinc-tomorrow
    77   :demand
    78   :config (load-theme 'sanityinc-tomorrow-eighties t))
    79 
    80 ;;; Mood modeline
    81 (use-package mood-line
    82   :hook (after-init . mood-line-mode))
     78(use-package doom-themes
     79  :config
     80  ;; Global settings (defaults)
     81  (setq doom-themes-enable-bold t    ; if nil, bold is universally disabled
     82        doom-themes-enable-italic t) ; if nil, italics is universally disabled
     83
     84  ;; Enable flashing mode-line on errors
     85  (doom-themes-visual-bell-config)
     86 
     87  ;; or for treemacs users
     88  (setq doom-themes-treemacs-theme "doom-colors") ; use the colorful treemacs theme
     89  (doom-themes-treemacs-config)
     90 
     91  ;; Corrects (and improves) org-mode's native fontification.
     92  (doom-themes-org-config)
     93  (load-theme 'doom-tomorrow-night t))
     94
     95;; (use-package color-theme-sanityinc-tomorrow
     96;;   :demand
     97;;   :config (load-theme 'sanityinc-tomorrow-eighties t))
    8398
    8499(use-package simple-httpd)
     
    112127         ("M-g x" . dumb-jump-go-prefer-external)
    113128         ("M-g z" . dumb-jump-go-prefer-external-other-window))
    114   :config (setq dumb-jump-selector 'ivy) ;; (setq dumb-jump-selector 'helm)
     129  :config (setq dumb-jump-selector 'ivy)
     130  (setq dumb-jump-selector 'helm)
    115131  :ensure)
    116132
     
    153169;;; Version control
    154170(use-package magit
    155   :defer 2
    156   :bind ("C-x g" . magit-status)
    157   :config (setq magit-refresh-status-buffer nil))
     171  :bind ("C-x g" . magit-status))
    158172
    159173;;; Magit forge (magit integration with git hostings)
     
    198212
    199213;;; 80 column width limit highlighter
    200 (use-package column-enforce-mode
    201   :defer t
    202   :diminish
    203   :config (80-column-rule)
    204   :hook (prog-mode . column-enforce-mode))
    205 
    206 ;;; General autocomplete
    207 (use-package ivy
    208   :demand
    209   :diminish
    210   :config
    211   (ivy-mode)
    212   (setq ivy-use-virtual-buffers t)
    213   (setq enable-recursive-minibuffers t)
    214   (global-set-key "\C-s" 'swiper)
    215   (global-set-key (kbd "C-c C-r") 'ivy-resume)
    216   (global-set-key (kbd "<f6>") 'ivy-resume))
    217 
    218 (use-package counsel
    219   :demand
    220   :config
    221   (global-set-key (kbd "M-x") 'counsel-M-x)
    222   (global-set-key (kbd "C-x C-f") 'counsel-find-file)
    223   (global-set-key (kbd "<f1> f") 'counsel-describe-function)
    224   (global-set-key (kbd "<f1> v") 'counsel-describe-variable)
    225   (global-set-key (kbd "<f1> l") 'counsel-find-library)
    226   (global-set-key (kbd "<f2> i") 'counsel-info-lookup-symbol)
    227   (global-set-key (kbd "<f2> u") 'counsel-unicode-char)
    228   (global-set-key (kbd "C-c g") 'counsel-git)
    229   (global-set-key (kbd "C-c j") 'counsel-git-grep)
    230   (global-set-key (kbd "C-x b") 'counsel-ibuffer)
    231   (global-set-key (kbd "C-c k") 'counsel-ag)
    232   (global-set-key (kbd "C-x l") 'counsel-locate)
    233   (global-set-key (kbd "C-S-o") 'counsel-rhythmbox)
    234   (define-key minibuffer-local-map (kbd "C-r") 'counsel-minibuffer-history))
    235 
    236 (use-package ivy-hydra)
     214;; (use-package column-enforce-mode
     215;;   :diminish
     216;;   :config (80-column-rule)
     217;;   :hook (prog-mode . column-enforce-mode))
     218
     219;;; Autocomplete and search
     220(use-package helm
     221  :ensure t
     222  :init
     223  :bind (("M-l" . helm-mini)
     224         ("M-L" . helm-browse-project)
     225         ("M-i" . helm-occur)
     226         ("M-I" . helm-do-grep-ag)
     227         ("C-o" . helm-imenu)
     228         
     229         ("M-x" . helm-M-x)
     230         ("C-x C-f" . helm-find-files)
     231         ("M-y" . helm-show-kill-ring)
     232         ("C-z" . helm-resume)
     233         ("C-h a" . helm-apropos)
     234         ("C-c f l" . helm-locate-library))
     235  :diminish helm-mode
     236  :config
     237  (require 'helm-config)
     238  (define-key helm-map (kbd "<tab>")    'helm-execute-persistent-action)
     239  (define-key helm-map (kbd "S-<tab>") 'helm-select-action)
     240  (helm-mode))
     241
     242(use-package helm-ag
     243  :after helm
     244  :bind ("C-s" . helm-do-ag-this-file))
    237245
    238246(use-package company
     
    253261;;;; LANGUAGES
    254262
    255 ;;; Python
    256 ;; (use-package elpy
    257 ;;   :init
    258 ;;   (elpy-enable)
    259 ;;   :config
    260 ;;   (setq python-shell-interpreter "python3")
    261 ;;   (setq elpy-rpc-python-command "python3")
    262 ;;   (when (load "flycheck" t t)
    263 ;;     (setq elpy-modules (delq 'elpy-module-flymake elpy-modules))
    264 ;;     (add-hook 'elpy-mode-hook 'flycheck-mode)))
    265 
    266263(use-package anaconda-mode
    267264  :hook (python-mode . anaconda-mode)
     
    271268  :after company
    272269  :config (add-to-list 'company-backends '(company-anaconda :with company-capf)))
     270
     271(use-package pydoc
     272  :commands pydoc
     273  :config (setq pydoc-command "python3 -m pydoc"))
     274
     275(use-package helm-pydoc)
    273276
    274277(use-package company-jedi
     
    368371(use-package typescript-mode)
    369372
    370 (use-package tide
    371   :ensure t
    372   :diminish
    373   :after (typescript-mode company flycheck)
    374   :hook ((typescript-mode . tide-setup)
    375          (typescript-mode . tide-hl-identifier-mode)
    376          (before-save . tide-format-before-save)))
    377 
    378373;;; Clojure REPL
    379374(use-package cider)
     
    391386
    392387;;; Show last key and command in modeline
    393 (use-package keycast
    394   :config (keycast-mode))
     388(use-package keycast)
    395389
    396390;;; IRC
    397 (use-package erc
    398   :config
    399   (erc-autojoin-enable)
    400   (setq erc-autojoin-channels-alist
    401         '(("freenode.net" "#emacs" "#wiki" "#next-browser"))))
     391(use-package erc)
    402392
    403393;;; Show TODO, FIX in comments
     
    444434(use-package command-log-mode)
    445435
    446 ;;; Benchmark init
    447 (use-package benchmark-init
    448   :demand
    449   :ensure t
    450   :config
    451   ;; To disable collection of benchmark data after init is done.
    452   (add-hook 'after-init-hook 'benchmark-init/deactivate))
    453 
    454436;;; Bug-Tracker DebBugs
    455437(use-package debbugs)
     
    470452(use-package dired-sidebar
    471453  :after exwm
    472   :bind (("C-x C-n" . dired-sidebar-toggle-sidebar))
     454  :bind (("C-x C-d" . dired-sidebar-toggle-sidebar))
    473455  :diminish
    474456  :after all-the-icons
     
    510492                ("PHONE" :foreground "blue" :weight bold)))))
    511493
    512 ;;; Smart mode line
    513 (use-package smart-mode-line
    514   :demand
    515   :config
    516   (setq sml/no-confirm-load-theme t)
    517   (setq sml/theme 'respectful)
    518   (sml/setup))
    519 
    520494;;; Delete trailing whitespace on save
    521495(use-package whitespace-cleanup-mode
     
    539513  :diminish
    540514  :config (guru-global-mode +1))
    541 
    542 ;;; Hackernews
    543 (use-package hackernews)
    544515
    545516;;; PDF Tools
     
    560531(save-place-mode 1)
    561532
    562 ;;; Show Emoji in emacs
    563 (use-package emojify
    564   :if window-system
    565   :config (add-hook 'after-init-hook #'global-emojify-mode))
    566 
    567 
    568 ;;; Server for editing web-forms in emacs
    569 (use-package edit-server
    570   :if window-system
    571   :config (edit-server-start))
    572 
    573533;;; Markdown preview
    574534(use-package flymd)
     
    583543(add-hook 'dired-mode-hook 'dired-mode-setup)
    584544
    585 ;;; Dired Ranger like
    586 (use-package peep-dired)
    587 
    588545;;; Project Management
    589546(use-package projectile
     
    607564(use-package rainbow-delimiters)
    608565
    609 ;;; Break line at 80 symbols
    610 (use-package visual-fill-column
    611   :config
    612   (setq fill-column 80)
    613   (global-visual-fill-column-mode)
    614   (global-visual-line-mode))
    615 
    616566;;; Disable mouse
    617567(use-package disable-mouse
    618   :diminish "NoMouse!"
    619   :defer 5
    620568  :config (global-disable-mouse-mode))
    621569
     570;; (use-package mood-line
     571;;   :config (mood-line-mode))
     572
     573(use-package doom-modeline
     574  :ensure t
     575  :hook (after-init . doom-modeline-mode)
     576  :config
     577  (setq doom-modeline-height 22)
     578  (setq doom-modeline-bar-width 8)
     579  (setq inhibit-compacting-font-caches t)
     580  (setq find-file-visit-truename t)
     581 
     582  (setq doom-modeline-height 1))
    622583
    623584(setq create-lockfiles nil)
     
    650611(progn
    651612  (autoload 'lilypond "lilypond")
    652    (autoload 'lilypond-mode "lilypond-mode")
    653    (setq auto-mode-alist
    654          (cons '("\\.ly$" . LilyPond-mode) auto-mode-alist))
    655    (add-hook 'LilyPond-mode-hook (lambda () (turn-on-font-lock))))
     613  (autoload 'lilypond-mode "lilypond-mode")
     614  (setq auto-mode-alist
     615        (cons '("\\.ly$" . LilyPond-mode) auto-mode-alist))
     616  (add-hook 'LilyPond-mode-hook (lambda () (turn-on-font-lock))))
     617
     618(column-number-mode)
    656619
    657620;;; Flycheck lilypond
     
    659622
    660623;; (global-set-key [(control ?h)] 'delete-backward-char)
     624(custom-set-variables
     625 ;; custom-set-variables was added by Custom.
     626 ;; If you edit it by hand, you could mess it up, so be careful.
     627 ;; Your init file should contain only one such instance.
     628 ;; If there is more than one, they won't work right.
     629 '(company-idle-delay 0.1)
     630 '(company-minimum-prefix-length 1)
     631 '(company-require-match nil)
     632 '(company-tooltip-align-annotation t t)
     633 '(flycheck-python-flake8-executable "python3")
     634 '(flycheck-python-pycompile-executable "python3")
     635 '(flycheck-python-pylint-executable "python3")
     636 '(package-selected-packages (quote (ag))))
     637(custom-set-faces
     638 ;; custom-set-faces was added by Custom.
     639 ;; If you edit it by hand, you could mess it up, so be careful.
     640 ;; Your init file should contain only one such instance.
     641 ;; If there is more than one, they won't work right.
     642 )
Note: See TracChangeset for help on using the changeset viewer.