dotfiles

config files and scripts at HOME.
git clone git://git.ricketyspace.net/dotfiles.git
Log | Files | Refs

commit 51c6ebe5baccce906689e1059d3f1f9236c32217
parent 4a79bed308b3490aa42f4507c9f17b820245e2a7
Author: rsiddharth <rsiddharth@ninthfloor.org>
Date:   Mon, 30 May 2016 00:22:14 +0000

.emacs: rewrote bult-in packages' customizations.

using `use-package`.

Diffstat:
.emacs | 47+++++++++++++++++++++++------------------------
1 file changed, 23 insertions(+), 24 deletions(-)

diff --git a/.emacs b/.emacs @@ -60,30 +60,6 @@ ;; font (add-to-list 'default-frame-alist '(font . "DejaVu Sans Mono 10")) -;; start server, iff not already started. -(require 'server) -(if (not (server-running-p)) - (server-start)) - -;; org-mode -(setq org-agenda-files "~/.emacs.d/agenda.org") - -(add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode)) - -(global-set-key "\C-cl" 'org-store-link) -(global-set-key "\C-ca" 'org-agenda) -(global-set-key "\C-cb" 'org-iswitchb) - -(add-hook 'org-mode-hook 'turn-on-font-lock) - -;; Add time stamp when task is moved to DONE state. -(setq org-log-done 'time) - -;; bookmarks -(setq bookmark-default-file "~/.emacs.d/bookmarks.el") -;;; update bookmarks file every when a bookmark is added/deleted. -(setq bookmark-save-flag 1) - ;; melpa (require 'package) (add-to-list 'package-archives @@ -95,6 +71,29 @@ (package-refresh-contents) (package-install 'use-package)) +;; server +(use-package server + :config + (unless (server-running-p) + (server-start))) + +;; org +(use-package org + :mode ("\\.org\\'" . org-mode) + :config + (add-hook 'org-mode-hook 'turn-on-font-lock) + (setq org-agenda-files "~/.emacs.d/agenda.org") + (setq org-log-done 'time) + :bind (("\C-cl" . org-store-link) + ("\C-ca" . org-agenda) + ("\C-cb" . org-iswitchb))) + +;; bookmarks +(use-package bookmark + :config + (setq bookmark-default-file "~/.emacs.d/bookmarks.el") + (setq bookmark-save-flag 1)) + (use-package tex :ensure auctex) (use-package jinja2-mode :ensure t) (use-package markdown-mode :ensure t)