From d5da257ad698d5bf86fbb6adf04a85d863debe08 Mon Sep 17 00:00:00 2001 From: jason Date: Mon, 7 Aug 2017 09:41:48 -0600 Subject: config updates --- config.org | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/config.org b/config.org index 6268896..58ab9b7 100644 --- a/config.org +++ b/config.org @@ -77,6 +77,14 @@ filetype that should include trailing whitespace I will whitelist it. (delete-trailing-whitespace))) #+END_SRC +yasnippet's tab completion can conflict with term mode, so disable that + +#+BEGIN_SRC emacs-lisp +(add-hook 'term-mode-hook (lambda() + (setq yas-dont-activate-functions t))) + +#+END_SRC + ** Look and Feel #+BEGIN_SRC emacs-lisp ;; Hide the toolbar @@ -217,6 +225,7 @@ I use [[https://company-mode.github.io/][company-mode]] for autocompletion. (company-quickhelp-mode))))) #+END_SRC * Version Control +** Magit Use [[https://magit.vc/][magit]] to supplement emacs built in version control system #+BEGIN_SRC emacs-lisp @@ -227,6 +236,18 @@ Use [[https://magit.vc/][magit]] to supplement emacs built in version control sy ("C-c v B" . magit-blame) ("C-c v L" . magit-log-buffer-file))) #+END_SRC +** diff-hl +[[https://github.com/dgutov/diff-hl][diff-hl]] displays diff information in the margin + +#+BEGIN_SRC emacs-lisp +(use-package diff-hl + :ensure t + :init + (setq diff-hl-margin-mode t + diff-hl-flydiff-mode t) + :config + (global-diff-hl-mode)) +#+END_SRC * Packages ** Paradox @@ -428,7 +449,35 @@ configurations across everyone's editors :config (editorconfig-mode 1)) #+END_SRC +** ag +ag is the silversearcher. It's faster than using grep + +#+BEGIN_SRC emacs-lisp +(use-package ag + :ensure t) +#+END_SRC +** restclient +[[https://github.com/pashky/restclient.el][restclient]] is a package that allows you to make raw HTTP queries to +websites and returns the response. It is much like the Postman chrome +plugin. + +#+BEGIN_SRC emacs-lisp +(use-package restclient + :ensure t + :config + (add-to-list 'auto-mode-alist '("\\.restclient" . restclient-mode))) +#+END_SRC + * Languages +** flycheck +[[https://github.com/flycheck/flycheck][flycheck]] is an on-the-fly syntax checker for many languages + +#+BEGIN_SRC emacs-lisp +(use-package flycheck + :ensure t + :config + (add-hook 'prog-mode-hook 'flycheck-mode)) +#+END_SRC ** Python Elpy does a great job of supporting Python so I just use that. -- cgit v1.2.1