dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 0fc54ccc932acad492c9545e19db3e389060dcfa
parent 2a4c093ed38b6ec7c8708eb9ae5b35991939e284
Author: Yuval Langer <yuval.langer@gmail.com>
Date:   Sun, 11 Dec 2016 18:09:13 +0200

Copy blatantly parts out of @zamansky's @cestlaz emacs tutorial files

Diffstat:
Memacs/emacs | 17+++++++++++------
Aemacs/init.el | 57+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Aemacs/myinit.org | 44++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 112 insertions(+), 6 deletions(-)

diff --git a/emacs/emacs b/emacs/emacs @@ -1,9 +1,13 @@ (require 'package) -(add-to-list - 'package-archives - '("melpa" . "https://melpa.org/packages/")) +(setq package-enable-at-startup nil) +(add-to-list 'package-archives + '("melpa" . "https://melpa.org/packages/")) (package-initialize) +;; Bootstrap `use-package' +(unless (package-installed-p 'use-package) + (package-refresh-contents) + (package-install 'use-package)) (evil-mode 1) @@ -23,9 +27,7 @@ (add-hook 'org-babel-after-execute-hook 'org-display-inline-images 'append) -(org-babel-do-load-languages 'org-babel-load-languages '((ipython - . t))) - +(org-babel-load-file (expand-file-name "~/.emacs.d/myinit.org")) (custom-set-variables ;; custom-set-variables was added by Custom. @@ -36,6 +38,9 @@ '(display-battery-mode t) '(electric-indent-mode nil) '(elpy-rpc-python-command "python3") + '(erc-log-mode t) + '(erc-log-write-after-insert t) + '(erc-log-write-after-send t) '(haskell-hoogle-url "https://www.fpcomplete.com/hoogle?q=%s") '(haskell-stylish-on-save t) '(haskell-tags-on-save t) diff --git a/emacs/init.el b/emacs/init.el @@ -0,0 +1,57 @@ +(require 'package) +(setq package-enable-at-startup nil) +(add-to-list 'package-archives + '("melpa" . "https://melpa.org/packages/")) +(package-initialize) + +;; Bootstrap `use-package' +(unless (package-installed-p 'use-package) + (package-refresh-contents) + (package-install 'use-package)) + +(evil-mode 1) + + +(global-set-key (kbd "M-x") 'helm-M-x) + + +(elpy-enable) +(elpy-use-ipython) + + +(setq org-confirm-babel-evaluate nil) ;don't prompt me to confirm + ;everytime I want to evaluate + ;a block + +;;; display/update images in the buffer after I evaluate +(add-hook 'org-babel-after-execute-hook + 'org-display-inline-images 'append) + +(org-babel-load-file (expand-file-name "~/.emacs.d/myinit.org")) + +(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. + '(column-number-mode t) + '(display-battery-mode t) + '(electric-indent-mode nil) + '(elpy-rpc-python-command "python3") + '(erc-log-mode t) + '(erc-log-write-after-insert t) + '(erc-log-write-after-send t) + '(haskell-hoogle-url "https://www.fpcomplete.com/hoogle?q=%s") + '(haskell-stylish-on-save t) + '(haskell-tags-on-save t) + '(indent-tabs-mode nil) + '(proof-autosend-enable t) + '(proof-electric-terminator-enable t) + '(proof-shell-quiet-errors nil) + '(python-check-command "flake8")) +(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. + ) diff --git a/emacs/myinit.org b/emacs/myinit.org @@ -0,0 +1,44 @@ +#+STARTUP: overview + + + +* interface tweaks +#+BEGIN_SRC emacs-lisp +(setq inhibit-startup-message t) +'(global-set-key (kbd "<f5>") 'revert-buffer) +#+END_SRC + +* try +#+BEGIN_SRC emacs-lisp +(use-package try + :ensure t) +#+END_SRC + +* which key +Brings up some help +#+BEGIN_SRC emacs-lisp +(use-package which-key + :ensure t + :config + (which-key-mode)) +#+END_SRC + +* Org mode + +Org bullets makes things look pretty + +#+BEGIN_SRC emacs-lisp + + (use-package org-bullets + :ensure t + :config + (add-hook 'org-mode-hook (lambda () (org-bullets-mode 1)))) + + (custom-set-variables + '(org-directory "~/foo/orgmode") + '(org-default-notes-file (concat org-directory "/notes.org")) + '(org-export-html-postamble nil) + '(org-hide-leading-stars t) + '(org-startup-folded (quote overview)) + '(org-startup-indented t)) +#+END_SRC