Changeset beb39dd in dotfiles
- Timestamp:
- Jan 25, 2020, 7:07:44 AM (5 years ago)
- Branches:
- master
- Children:
- c3016ec
- Parents:
- 1dff69f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
emacs/.emacs
r1dff69f rbeb39dd 5 5 6 6 ;;;; INIT 7 8 ;;; -*- lexical-binding: t; -*- 7 9 8 10 (eval-when-compile … … 48 50 :config 49 51 (setq use-package-verbose t) 50 (setq use-package-always-defer t)52 (setq use-package-always-defer nil) 51 53 (setq use-package-always-ensure t)) 52 54 … … 74 76 75 77 ;;; 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)) 83 98 84 99 (use-package simple-httpd) … … 112 127 ("M-g x" . dumb-jump-go-prefer-external) 113 128 ("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) 115 131 :ensure) 116 132 … … 153 169 ;;; Version control 154 170 (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)) 158 172 159 173 ;;; Magit forge (magit integration with git hostings) … … 198 212 199 213 ;;; 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)) 237 245 238 246 (use-package company … … 253 261 ;;;; LANGUAGES 254 262 255 ;;; Python256 ;; (use-package elpy257 ;; :init258 ;; (elpy-enable)259 ;; :config260 ;; (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 266 263 (use-package anaconda-mode 267 264 :hook (python-mode . anaconda-mode) … … 271 268 :after company 272 269 :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) 273 276 274 277 (use-package company-jedi … … 368 371 (use-package typescript-mode) 369 372 370 (use-package tide371 :ensure t372 :diminish373 :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 378 373 ;;; Clojure REPL 379 374 (use-package cider) … … 391 386 392 387 ;;; Show last key and command in modeline 393 (use-package keycast 394 :config (keycast-mode)) 388 (use-package keycast) 395 389 396 390 ;;; 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) 402 392 403 393 ;;; Show TODO, FIX in comments … … 444 434 (use-package command-log-mode) 445 435 446 ;;; Benchmark init447 (use-package benchmark-init448 :demand449 :ensure t450 :config451 ;; To disable collection of benchmark data after init is done.452 (add-hook 'after-init-hook 'benchmark-init/deactivate))453 454 436 ;;; Bug-Tracker DebBugs 455 437 (use-package debbugs) … … 470 452 (use-package dired-sidebar 471 453 :after exwm 472 :bind (("C-x C- n" . dired-sidebar-toggle-sidebar))454 :bind (("C-x C-d" . dired-sidebar-toggle-sidebar)) 473 455 :diminish 474 456 :after all-the-icons … … 510 492 ("PHONE" :foreground "blue" :weight bold))))) 511 493 512 ;;; Smart mode line513 (use-package smart-mode-line514 :demand515 :config516 (setq sml/no-confirm-load-theme t)517 (setq sml/theme 'respectful)518 (sml/setup))519 520 494 ;;; Delete trailing whitespace on save 521 495 (use-package whitespace-cleanup-mode … … 539 513 :diminish 540 514 :config (guru-global-mode +1)) 541 542 ;;; Hackernews543 (use-package hackernews)544 515 545 516 ;;; PDF Tools … … 560 531 (save-place-mode 1) 561 532 562 ;;; Show Emoji in emacs563 (use-package emojify564 :if window-system565 :config (add-hook 'after-init-hook #'global-emojify-mode))566 567 568 ;;; Server for editing web-forms in emacs569 (use-package edit-server570 :if window-system571 :config (edit-server-start))572 573 533 ;;; Markdown preview 574 534 (use-package flymd) … … 583 543 (add-hook 'dired-mode-hook 'dired-mode-setup) 584 544 585 ;;; Dired Ranger like586 (use-package peep-dired)587 588 545 ;;; Project Management 589 546 (use-package projectile … … 607 564 (use-package rainbow-delimiters) 608 565 609 ;;; Break line at 80 symbols610 (use-package visual-fill-column611 :config612 (setq fill-column 80)613 (global-visual-fill-column-mode)614 (global-visual-line-mode))615 616 566 ;;; Disable mouse 617 567 (use-package disable-mouse 618 :diminish "NoMouse!"619 :defer 5620 568 :config (global-disable-mouse-mode)) 621 569 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)) 622 583 623 584 (setq create-lockfiles nil) … … 650 611 (progn 651 612 (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) 656 619 657 620 ;;; Flycheck lilypond … … 659 622 660 623 ;; (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.