diff options
| author | jason | 2017-08-17 16:38:39 -0600 |
|---|---|---|
| committer | jason | 2017-08-17 16:38:39 -0600 |
| commit | 87994edb2fffec4f642352d60f5d7cf688a12a10 (patch) | |
| tree | 00216213add8f5ca4cb38165731d2f75628ac16b | |
| parent | 306dcdd3c2bee03365c48d417136c9c328314c66 (diff) | |
| download | dotemacs-87994edb2fffec4f642352d60f5d7cf688a12a10.tar.gz dotemacs-87994edb2fffec4f642352d60f5d7cf688a12a10.zip | |
updates to config
| -rw-r--r-- | config.org | 69 |
1 files changed, 35 insertions, 34 deletions
| @@ -164,7 +164,7 @@ Define the package repositories | |||
| 164 | (setq package-archives '( | 164 | (setq package-archives '( |
| 165 | ("elpa" . "http://elpa.gnu.org/packages/") | 165 | ("elpa" . "http://elpa.gnu.org/packages/") |
| 166 | 166 | ||
| 167 | ("org" . "http://orgmode.org/elpa/") | 167 | ;("org" . "http://orgmode.org/elpa/") |
| 168 | ;; melpa builds git repositories and can be unstable | 168 | ;; melpa builds git repositories and can be unstable |
| 169 | ("melpa" . "http://melpa.org/packages/") | 169 | ("melpa" . "http://melpa.org/packages/") |
| 170 | ;; marmalade has version uploaded by the maintainers | 170 | ;; marmalade has version uploaded by the maintainers |
| @@ -191,8 +191,10 @@ I use jweigly's [[https://github.com/jwiegley/use-package][use-package]] to mana | |||
| 191 | [[https://github.com/synic/jbeans-emacs][jbeans]] is a jellybeans.vim clone maintained by synic | 191 | [[https://github.com/synic/jbeans-emacs][jbeans]] is a jellybeans.vim clone maintained by synic |
| 192 | 192 | ||
| 193 | #+BEGIN_SRC emacs-lisp | 193 | #+BEGIN_SRC emacs-lisp |
| 194 | (require 'jbeans-theme) | 194 | (use-package jbeans-theme |
| 195 | (load-theme 'jbeans t) | 195 | :ensure t |
| 196 | :config | ||
| 197 | (load-theme 'jbeans t)) | ||
| 196 | #+END_SRC | 198 | #+END_SRC |
| 197 | * Auto-completion | 199 | * Auto-completion |
| 198 | I use [[https://company-mode.github.io/][company-mode]] for autocompletion. | 200 | I use [[https://company-mode.github.io/][company-mode]] for autocompletion. |
| @@ -374,13 +376,13 @@ manager might have several desktops | |||
| 374 | [[https://github.com/milkypostman/powerline][powerline]] is a prettier mode line for emacs | 376 | [[https://github.com/milkypostman/powerline][powerline]] is a prettier mode line for emacs |
| 375 | 377 | ||
| 376 | #+BEGIN_SRC emacs-lisp | 378 | #+BEGIN_SRC emacs-lisp |
| 377 | (use-package powerline | 379 | ;(use-package powerline |
| 378 | :ensure t | 380 | ; :ensure t |
| 379 | :init | 381 | ; :init |
| 380 | (setq powerline-default-separator 'wave | 382 | ; (setq powerline-default-separator 'wave |
| 381 | powerline-display-mule-info nil) | 383 | ; powerline-display-mule-info nil) |
| 382 | :config | 384 | ; :config |
| 383 | (powerline-default-theme)) | 385 | ; (powerline-default-theme)) |
| 384 | #+END_SRC | 386 | #+END_SRC |
| 385 | ** projectile | 387 | ** projectile |
| 386 | [[https://github.com/bbatsov/projectile][projectile]] adds some features around projects, for example finding only files | 388 | [[https://github.com/bbatsov/projectile][projectile]] adds some features around projects, for example finding only files |
| @@ -404,18 +406,6 @@ that are in the current project (defined by a .git directory). | |||
| 404 | (setq elfeed-db-directory "~/Shared/elfeeddb")) | 406 | (setq elfeed-db-directory "~/Shared/elfeeddb")) |
| 405 | #+END_SRC | 407 | #+END_SRC |
| 406 | 408 | ||
| 407 | [[https://github.com/remyhonig/elfeed-org][elfeed-org]] allows you to define your list of RSS feeds with an org | ||
| 408 | file instead of an elisp list. | ||
| 409 | |||
| 410 | #+BEGIN_SRC emacs-lisp | ||
| 411 | (use-package elfeed-org | ||
| 412 | :ensure t | ||
| 413 | :init | ||
| 414 | (setq rmh-elfeed-org-files (list "~/Shared/elfeed.org")) | ||
| 415 | :config | ||
| 416 | (elfeed-org)) | ||
| 417 | #+END_SRC | ||
| 418 | |||
| 419 | [[https://github.com/algernon/elfeed-goodies][elfeed-goodies]] adds some ui/ux sugar to the elfeed screen | 409 | [[https://github.com/algernon/elfeed-goodies][elfeed-goodies]] adds some ui/ux sugar to the elfeed screen |
| 420 | 410 | ||
| 421 | #+BEGIN_SRC emacs-lisp | 411 | #+BEGIN_SRC emacs-lisp |
| @@ -479,26 +469,37 @@ plugin. | |||
| 479 | (add-hook 'prog-mode-hook 'flycheck-mode)) | 469 | (add-hook 'prog-mode-hook 'flycheck-mode)) |
| 480 | #+END_SRC | 470 | #+END_SRC |
| 481 | ** Python | 471 | ** Python |
| 482 | Elpy does a great job of supporting Python so I just use that. | 472 | [[https://github.com/proofit404/anaconda-mode][anaconda-mode]] has support for code navagatin, docs, and completion for Python. |
| 483 | 473 | ||
| 484 | #+BEGIN_SRC emacs-lisp | 474 | #+BEGIN_SRC emacs-lisp |
| 485 | (add-to-list 'package-archives | 475 | (use-package anaconda-mode |
| 486 | '("elpy" . "http://jorgenschaefer.github.io/packages/")) | 476 | :ensure t) |
| 477 | (use-package company-anaconda | ||
| 478 | :ensure t | ||
| 479 | :config | ||
| 480 | (eval-after-load "company" | ||
| 481 | '(add-to-list 'company-backends 'company-anaconda))) | ||
| 482 | #+END_SRC | ||
| 483 | |||
| 484 | [[https://github.com/porterjamesj/virtualenvwrapper.el][virtualenvwrapper.el]] adds support for virtualenvs for emacs. | ||
| 487 | 485 | ||
| 488 | (use-package elpy | 486 | #+BEGIN_SRC emacs-lisp |
| 487 | (use-package virtualenvwrapper | ||
| 489 | :ensure t | 488 | :ensure t |
| 490 | :init | ||
| 491 | (setq elpy-rpc-project-specific t) | ||
| 492 | :config | 489 | :config |
| 493 | (elpy-enable)) | 490 | (venv-initialize-interactive-shells) |
| 491 | (venv-initialize-eshell)) | ||
| 494 | #+END_SRC | 492 | #+END_SRC |
| 495 | 493 | ||
| 496 | Enable some other modes when editing python files | 494 | This part is for setting up python mode in the way I prefer. |
| 497 | 495 | ||
| 498 | #+BEGIN_SRC emacs-lisp | 496 | #+BEGIN_SRC emacs-lisp |
| 499 | (add-hook 'python-mode-hook '(lambda () | 497 | (add-hook 'python-mode-hook '(lambda () |
| 500 | (setq-local fill-column 79) | 498 | (anaconda-mode) |
| 501 | (auto-fill-mode 1))) | 499 | (anaconda-eldoc-mode) |
| 500 | (company-mode) | ||
| 501 | (auto-fill-mode 1) | ||
| 502 | (setq-local fill-column 79))) | ||
| 502 | #+END_SRC | 503 | #+END_SRC |
| 503 | ** Rust | 504 | ** Rust |
| 504 | Installation: | 505 | Installation: |
| @@ -563,6 +564,6 @@ defines directories that include all org files in the agenda. | |||
| 563 | Styles source code blocks when exporting an org file to HTML | 564 | Styles source code blocks when exporting an org file to HTML |
| 564 | 565 | ||
| 565 | #+BEGIN_SRC emacs-lisp | 566 | #+BEGIN_SRC emacs-lisp |
| 566 | (use-package htmlize | 567 | ;(use-package htmlize |
| 567 | :ensure t) | 568 | ; :ensure t) |
| 568 | #+END_SRC | 569 | #+END_SRC |