Browse Source

update dotfiles

master
Brett Langdon 6 years ago
parent
commit
336e7fe388
No known key found for this signature in database GPG Key ID: B664881177781B04
12 changed files with 76 additions and 2 deletions
  1. +1
    -0
      .gitignore
  2. +13
    -0
      emacs.d/custom.el
  3. +4
    -2
      emacs.d/init.el
  4. +16
    -0
      emacs.d/layers/javascript/init.el
  5. +18
    -0
      emacs.d/layers/latex/init.el
  6. +9
    -0
      emacs.d/layers/python/init.el
  7. +6
    -0
      emacs.d/layers/rust/init.el
  8. +2
    -0
      emacs.d/layers/scss/init.el
  9. +0
    -0
      emacs.d/layers/vue/init.el
  10. +3
    -0
      postactivate
  11. +1
    -0
      zshrc.d/.env.zsh
  12. +3
    -0
      zshrc.d/lib/aliases.sh

+ 1
- 0
.gitignore View File

@ -11,3 +11,4 @@ emacs.d/places
emacs.d/recentf
emacs.d/auto-save-list
emacs.d/custom.el
emacs.d/.lsp-session*

+ 13
- 0
emacs.d/custom.el View File

@ -0,0 +1,13 @@
(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.
'(package-selected-packages
'(cython-mode scss-mode vue-mode tide rust-mode company-auctex tex-site auctex sphinx-doc company-lsp lsp-ui lsp-mode ws-butler use-package smartparens pip-requirements osx-clipboard monokai-theme markdown-mode helm-projectile helm-ag godoctor go-guru go-eldoc go-autocomplete flycheck-gometalinter doom-modeline dockerfile-mode docker-compose-mode diminish company-go company-anaconda)))
(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.
)

+ 4
- 2
emacs.d/init.el View File

@ -62,8 +62,10 @@
(setq use-package-always-ensure t)
;; Disable backup files and auto-saving
(setq backup-inhibited t)
(setq auto-save-default nil)
(setq backup-inhibited t
make-backup-files nil
auto-save-default nil
auto-save-list-file-prefix nil)
;; Spaces are better than tabs
(setq-default indent-tabs-mode nil


+ 16
- 0
emacs.d/layers/javascript/init.el View File

@ -0,0 +1,16 @@
(add-to-list 'auto-mode-alist '("\\.mjs\\'" . javascript-mode))
(setq js-indent-level 2
typescript-indent-level 2
mmm-js-mode-enter-hook (lambda () (setq syntax-ppss-table nil))
mmm-typescript-mode-enter-hook (lambda () (setq syntax-ppss-table nil)))
(use-package tide
:ensure t
:after (typescript-mode company flycheck)
:hook ((typescript-mode . tide-setup)
(typescript-mode . tide-hl-identifier-mode)
(before-save . tide-format-before-save)))
(use-package vue-mode
:ensure t)
(use-package vue-html-mode
:ensure t)

+ 18
- 0
emacs.d/layers/latex/init.el View File

@ -0,0 +1,18 @@
(use-package tex-site
:defer t
:ensure auctex
:hook (LaTex-mode . auctex)
:commands auctex
:config
(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq-default TeX-master nil)
(setq TeX-global-PDF-mode t)
(add-hook 'LaTeX-mode-hook 'visual-line-mode)
(add-hook 'LaTeX-mode-hook 'flyspell-mode)
(add-hook 'LaTeX-mode-hook 'LaTeX-math-mode)
(add-hook 'LaTeX-mode-hook 'turn-on-reftex)
(setq reftex-plug-into-AUCTeX t))

+ 9
- 0
emacs.d/layers/python/init.el View File

@ -17,5 +17,14 @@
:mode ("requirements\\.txt" . pip-requirements-mode)
:diminish pip-requirements-mode)
;; Enable cython-mode when editing a `*.pyx` file
(use-package cython-mode
:mode ("\\.pyx" . cython-mode)
:diminish cython-mode)
(use-package sphinx-doc
:hook (python-mode . sphinx-doc-mode)
:commands sphinx-docs-mode)
;; Enable Flycheck for python
(enable-flycheck 'python-mode-hook)

+ 6
- 0
emacs.d/layers/rust/init.el View File

@ -0,0 +1,6 @@
(use-package rust-mode
:diminish rust-mode
:ensure t
:mode (("\\.rs\\'" . rust-mode))
:init
(setq rust-format-on-save t))

+ 2
- 0
emacs.d/layers/scss/init.el View File

@ -0,0 +1,2 @@
(use-package scss-mode
:ensure t)

+ 0
- 0
emacs.d/layers/vue/init.el View File


+ 3
- 0
postactivate View File

@ -0,0 +1,3 @@
#!/bin/bash
# This hook is sourced after every virtualenv is activated.

+ 1
- 0
zshrc.d/.env.zsh View File

@ -50,6 +50,7 @@ PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH:~/.local/bin"
PATH="$PATH:/usr/local/go/bin:$GOPATH/bin"
PATH="/usr/local/heroku/bin:$PATH"
PATH="/usr/local/opt/python/libexec/bin:$PATH"
PATH="$HOME/.cargo/bin:$PATH"
export PATH="$HOME/.rvm/bin:$PATH"
export MANPATH="/usr/local/opt/coreutils/libexec/gnuman:$MANPATH"


+ 3
- 0
zshrc.d/lib/aliases.sh View File

@ -11,3 +11,6 @@ alias reload-history="fc -Ri"
alias docker-login="aws ecr get-login --no-include-email --region us-east-1 | sh"
alias docker-start="open --background /Applications/Docker.app"
alias docker-top='watch -n 1 "clear && docker top $1"'
# SSH
alias socks-proxy="ssh -D 9050 -C -N ${1}"

Loading…
Cancel
Save