dotfiles

My opinionated dotfiles
git clone git://git.erethon.com/dotfiles
Log | Files | Refs

commit db17a68edffeb2d3a3e5482df796ae5df021c884
parent ddb6b6bf33cf93db756acf6240f80da52fd3da2e
Author: Dionysis Grigoropoulos <dgrig@erethon.com>
Date:   Wed,  3 May 2017 23:25:05 +0300

emacs: Update main config file

* Highlight matching parentheses
* Make sure we download packages using TLS
* Highlight code in org-mode code blocks
* Unclutter the init screen
* Auto-close parens/quotes/brackets/etc

Diffstat:
.emacs.d/configuration.org | 33++++++++++++++++++++++++++++++---
1 file changed, 30 insertions(+), 3 deletions(-)

diff --git a/.emacs.d/configuration.org b/.emacs.d/configuration.org @@ -1,6 +1,5 @@ * Appearance ** Hide the menu bar on top - #+BEGIN_SRC emacs-lisp (menu-bar-mode -1) #+END_SRC @@ -22,13 +21,22 @@ (setq linum-format "%d ") #+END_SRC +** Highlight matching parentheses +#+BEGIN_SRC emacs-lisp + (show-paren-mode 1) + (setq show-paren-delay 0) +#+END_SRC + * Packages ** Initialize packages #+BEGIN_SRC emacs-lisp (require 'package) + (setq package-archives + '(("melpa" . "https://melpa.org/packages/") + ("gnu" . "https://elpa.gnu.org/packages/"))) (package-initialize) - (add-to-list 'package-archives - '("melpa" . "https://melpa.org/packages/")) + (setq tls-checktrust t) + (setq gnutls-verify-error t) #+END_SRC * evil mode @@ -88,6 +96,12 @@ (define-key evil-normal-state-map (kbd "TAB") 'org-cycle) #+END_SRC +** Highlight code in source blocks +#+BEGIN_SRC emacs-lisp + (setq org-src-fontify-natively t) + (setq org-src-tab-acts-natively t) +#+END_SRC + * org-journal ** Set journal directory #+BEGIN_SRC emacs-lisp @@ -154,6 +168,19 @@ (setq tramp-default-method "ssh") #+END_SRC +*** Hide most stuff from the init screen +#+BEGIN_SRC emacs-lisp + (setq inhibit-startup-message t) + (setq inhibit-splash-screen t) + (setq initial-scratch-message nil) + (setq initial-buffer-choice "~/Documents/org") +#+END_SRC + +*** Auto-close parentheses/double quotes/brackets/etc +#+BEGIN_SRC emacs-lisp + (electric-pair-mode 1) +#+END_SRC + ** Language specific *** Python **** Tab width