dotfiles

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

commit a378cdce3a9a79ff520b5f1cba9d233029edcc7f
parent 52827c807f91712b2b3be8101f3a157e63259445
Author: rsiddharth <rsiddharth@ninthfloor.org>
Date:   Sat, 27 Feb 2016 17:48:49 -0500

Added emacs config.

Diffstat:
.emacs | 163+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.emacs.d/agenda.org | 3+++
.emacs.d/bookmarks.el | 253+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.gnus.el | 6++++++
4 files changed, 425 insertions(+), 0 deletions(-)

diff --git a/.emacs b/.emacs @@ -0,0 +1,163 @@ +;; config.el -- rsd's emacs config. +;; +;; Copyright (C) 2015 rsiddharth <s@ricketyspace.net> +;; +;; This program is free software: you can redistribute it and/or +;; modify it under the terms of the GNU General Public License as +;; published by the Free Software Foundation, either version 3 of the +;; License, or (at your option) any later version. +;; +;; This program is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;; General Public License for more details. +;; +;; You should have received a copy of the GNU General Public License +;; along with this program (see COPYING). If not, see +;; <http://www.gnu.org/licenses/>. + +(setq user-full-name "rsiddharth") +(setq user-mail-address "rsiddharth@ninthfloor.org") + + +;; startup +(setq inhibit-startup-screen t) +(setq initial-buffer-choice "~/git/notes/scratchpad.org") +(setq initial-scratch-message ";; 42") + + +;; disable things +(dolist (mode '(tool-bar-mode + scroll-bar-mode + blink-cursor-mode + menu-bar-mode)) + (when (fboundp mode) (funcall mode -1))) + + +;; enable things +(dolist (mode '(column-number-mode)) + (when (fboundp mode) (funcall mode 1))) + + +;; stop cursor blinking in urxvt +(setq visible-cursor nil) + +;; enable things +(put 'narrow-to-region 'disabled nil) + + +;; tabs and spacing +(setq tab-width 4) +(setq-default indent-tabs-mode nil) + + +;; utf-8 for terminal output +(set-terminal-coding-system 'utf-8-auto) + +;; font +(add-to-list 'default-frame-alist '(font . "terminus-10")) + +;; start server +(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) + +(setq org-log-done 'time) + + +;; bookmarks +(setq bookmark-default-file "~/.emacs.d/bookmarks.el") +(setq bookmark-save-flag 1) + + +;; melpa config +(require 'package) +(add-to-list 'package-archives + '("melpa" . "http://melpa.org/packages/") t) +(package-initialize) + +(when (not package-archive-contents) + (package-refresh-contents)) + +(defvar elpa-packages '(auto-complete + helm + markdown-mode + magit + php-mode + web-mode + auctex) + "A list of elpa packages to install.") + +(dolist (p elpa-packages) + (when (not (package-installed-p p)) + (package-install p))) + + +;; auto-complete mode. +(require 'auto-complete-config) +(ac-config-default) + + +;; helm +(require 'helm) +(require 'helm-config) + +(helm-mode 1) +(helm-autoresize-mode t) + +(global-set-key (kbd "C-c h") 'helm-command-prefix) +(global-unset-key (kbd "C-x c")) + +(define-key helm-map (kbd "<tab>") 'helm-execute-persistent-action) +(define-key helm-map (kbd "C-i") 'helm-execute-persistent-action) +(define-key helm-map (kbd "C-z") 'helm-select-action) + +(global-set-key (kbd "M-x") 'helm-M-x) +(global-set-key (kbd "M-y") 'helm-show-kill-ring) +(global-set-key (kbd "C-x b") 'helm-mini) +(global-set-key (kbd "C-x C-f") 'helm-find-files) + +;; magit +(global-set-key (kbd "C-x g") 'magit-status) +(global-set-key (kbd "C-x M-g") 'magit-dispatch-popup) + + +;; custom-set-faces was added by Custom. +(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. + '(helm-buffer-directory ((t (:background "brightblack" :foreground "red")))) + '(helm-ff-directory ((t (:background "brightblack" :foreground "red")))) + '(helm-ff-dotted-directory ((t (:background "brightblack" :foreground "magenta")))) + '(helm-selection ((t (:background "black" :distant-foreground "yellow" :foreground "yellow")))) + '(helm-source-header ((t (:inverse-video t :weight bold :height 1.3)))) + '(isearch ((t (:background "black" :foreground "cyan")))) + '(isearch-fail ((t (:background "black" :foreground "red")))) + '(lazy-highlight ((t (:background "black" :foreground "magenta")))) + '(rst-level-1 ((t (:foreground "magenta")))) + '(rst-level-2 ((t (:foreground "green")))) + '(rst-level-3 ((t (:foreground "yellow")))) + '(rst-level-4 ((t (:foreground "blue")))) + '(rst-level-5 ((t (:foreground "magenta")))) + '(rst-level-6 ((t (:foreground "cyan")))) + '(whitespace-space ((t (:foreground "white50")))) + '(whitespace-tab ((t (:foreground "white50")))) + '(whitespace-trailing ((t (:background "red1" :foreground "white" :weight bold))))) +(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. + ) diff --git a/.emacs.d/agenda.org b/.emacs.d/agenda.org @@ -0,0 +1,3 @@ +~/git/notes/TODO +~/bgc/combox/TODO.org +~/git/notes/scratchpad.org diff --git a/.emacs.d/bookmarks.el b/.emacs.d/bookmarks.el @@ -0,0 +1,252 @@ +;;;; Emacs Bookmark Format Version 1 ;;;; +;;; This format is meant to be slightly human-readable; +;;; nevertheless, you probably don't want to edit it. +;;; -*- End Of Bookmark File Format Version Stamp -*- +(("calc" + (front-context-string . "*Date arithmetic") + (rear-context-string . "m/s <RET>’.\n\n ") + (position . 15560) + (filename . "/usr/share/info/emacs-24/calc") + (info-node . "Demonstration of Calc") + (handler . Info-bookmark-jump)) +("sandbox" + (filename . "~/git/sandbox/") + (front-context-string . "guile\n drwxr-xr") + (rear-context-string . "96 Dec 26 21:06 ") + (position . 206)) +("org-agenda-cmds" + (front-context-string . " Change the ") + (rear-context-string . "g-agenda-todo)’\n") + (position . 357180) + (filename . "/usr/share/info/emacs-24/org") + (info-node . "Agenda commands") + (handler . Info-bookmark-jump)) +("magit" + (front-context-string . "\n4.1 Modes and B") + (rear-context-string . "erface concepts\n") + (position . 23352) + (filename . "/home/rsd/.emacs.d/elpa/magit-20151206.1030/magit") + (info-node . "Modes and Buffers") + (handler . Info-bookmark-jump)) +("gnus" + (front-context-string . "Group Levels::) ") + (rear-context-string . "d groups (*note\n") + (position . 36290) + (filename . "/usr/share/info/emacs-24/gnus") + (info-node . "Checking New Groups") + (handler . Info-bookmark-jump)) +("gnus-terminology" + (front-context-string . "\n11.4 Terminolog") + (rear-context-string . " Up: Appendices\n") + (position . 953001) + (filename . "/usr/share/info/emacs-24/gnus") + (info-node . "Terminology") + (handler . Info-bookmark-jump)) +("auctex" + (front-context-string . "\n Some environ") + (rear-context-string . "erted commands.\n") + (position . 53562) + (filename . "/home/rsd/.emacs.d/elpa/auctex-11.88.8/auctex") + (info-node . "Editing Facilities") + (handler . Info-bookmark-jump)) +("packages.org" + (filename . "~/git/notes/deb/packages.org") + (front-context-string . "* deb packages\n*") + (rear-context-string) + (position . 1)) +("2015.scruffy" + (filename . "~/git/rsd-w3/qstream/2015.scruffy") + (front-context-string . "================") + (rear-context-string . "==========\n2015\n") + (position . 126)) +("war-and-peace.org" + (filename . "~/git/notes/reading/war-and-peace.org") + (front-context-string . "* book one\n** ch") + (rear-context-string) + (position . 1)) +("wap" + (filename . "~/annex/eat/war-and-peace/2600.txt.utf-8") + (front-context-string . "CHAPTER XXVII\n\nA") + (rear-context-string . "ning room.\"\n\n\n\n\n") + (position . 250100)) +("picture-directions" + (front-context-string . "\n41.2 Controllin") + (rear-context-string . "p: Picture Mode\n") + (position . 1396114) + (filename . "/usr/share/info/emacs-24/emacs") + (info-node . "Insert in Picture") + (handler . Info-bookmark-jump)) +("TODO" + (filename . "~/git/notes/TODO") + (front-context-string . " -*- mode: org; ") + (rear-context-string) + (position . 1)) +("guile" + (front-context-string . "So far, we have ") + (rear-context-string . "==============\n\n") + (position . 50896) + (filename . "/usr/share/info/guile-2.0") + (info-node . "About Expressions") + (handler . Info-bookmark-jump)) +("gnu-www" + (filename . "~/webdev/gnu-www/www/") + (front-context-string . "2001\n drwxr-xr-") + (rear-context-string . "96 Sep 8 22:47 ") + (position . 221)) +("eos" + (filename . "~/annex/eat/strunk-and-white/pg37134.txt") + (front-context-string . "=Different than.") + (rear-context-string . "_trustworthy_.\n\n") + (position . 61454)) +("oscar" + (filename . "~/eat/oscarwilde-earnest/pg844.txt") + (front-context-string . "SECOND ACT\n\n\nSCE") + (rear-context-string . "]\n\nACT DROP\n\n\n\n\n") + (position . 43113)) +("curcon" + (filename . "~/git/notes/fin/curconv") + (front-context-string . "Currency Convert") + (rear-context-string) + (position . 1)) +("latexnotes" + (filename . "~/git/llatex/notes") + (front-context-string) + (rear-context-string . "& \\_ \\{ \\} \\~{} ") + (position . 52)) +("fin" + (filename . "~/git/rsd-fin/org/2016.org") + (front-context-string . " | | ") + (rear-context-string . " | | ") + (position . 1665)) +("url" + (front-context-string . "\n3.1 `http' and ") + (rear-context-string . "orted URL Types\n") + (position . 7489) + (filename . "/usr/share/info/emacs-23/url") + (info-node . "http/https") + (handler . Info-bookmark-jump)) +("org" + (front-context-string . "\n5.3.3 Tracking ") + (rear-context-string . "rogress logging\n") + (position . 175212) + (filename . "/usr/share/info/emacs-24/org") + (info-node . "Tracking your habits") + (handler . Info-bookmark-jump)) +("rsd-w3" + (filename . "~/git/rsd-w3/") + (front-context-string . "aaronsw.html\n -") + (rear-context-string . "14 Nov 9 2013 ") + (position . 205)) +("notes" + (filename . "~/git/notes/") + (front-context-string . "blobs\n -rw-r--r") + (rear-context-string . "96 May 31 12:50 ") + (position . 207)) +("awesome" + (filename . "~/.config/awesome/") + (front-context-string . "awesome_test\n -") + (rear-context-string . "96 Jun 1 12:35 ") + (position . 209)) +("afaq" + (filename . "/usr/share/doc/anarchism/txt/secA2.txt.gz") + (front-context-string . "A.2.7 Why do ana") + (rear-context-string . " obey leaders.\n\n") + (position . 52957)) +("blockfinder" + (filename . "~/git/blockfinder/blockfinder.py") + (front-context-string . " def create_a") + (rear-context-string . "cursor.close()\n\n") + (position . 4145)) +("twitteroauth" + (filename . "~/git/twitteroauth-python/oauth/__init__.py") + (front-context-string . "# OAuthClient is") + (rear-context-string . " % str(nonce))\n\n") + (position . 15141)) +("pump.io" + (filename . "~/git/pump.io/README.md") + (front-context-string . "# pump.io\n\nVersi") + (rear-context-string) + (position . 1)) +("pypump" + (filename . "~/git/others/pypump/pypump/models/") + (front-context-string . "class Mapper(obj") + (rear-context-string . "gger(__name__)\n\n") + (position . 891)) +("book-log" + (filename . "~/git/notes/personal/book-log") + (front-context-string . "BOOK LOG -*- mod") + (rear-context-string) + (position . 1)) +("emms" + (filename . "/usr/share/emacs/site-lisp/emms/emms-source-file.el") + (front-context-string . "(defmacro emms-w") + (rear-context-string . " \"\\n\"))))\n\n") + (position . 9134)) +("qstream" + (filename . "~/git/rsd-w3/qstream/2014.scruffy") + (front-context-string . "meta-title: quot") + (rear-context-string) + (position . 1)) +("log" + (filename . "~/git/notes/log/2016.org") + (front-context-string . "\n** 02\n Talks ") + (rear-context-string) + (position . 5)) +("erc" + (front-context-string . "7.1 Connecting t") + (rear-context-string . "Advanced Usage\n\n") + (position . 21018) + (filename . "/usr/share/info/emacs-23/erc") + (info-node . "Connecting") + (handler . Info-bookmark-jump)) +("elisp-regex" + (front-context-string . "19.5 Syntax of R") + (rear-context-string . "h, Up: Search\n\n") + (position . 6342) + (filename . "/usr/share/info/emacs") + (info-node . "Regexps") + (handler . Info-bookmark-jump)) +("mg" + (filename . "~/git/mediagoblin/mediagoblin/storage/mountstorage.py") + (front-context-string . "from mediagoblin") + (rear-context-string . "rg/licenses/>.\n\n") + (position . 783)) +("texinfo" + (front-context-string . "\n13.3 Defining t") + (rear-context-string . "s, Up: Indices\n") + (position . 13265) + (filename . "/usr/share/info/texinfo") + (info-node . "Indexing Commands") + (handler . Info-bookmark-jump)) +("make" + (front-context-string . "\n1.2 Problems an") + (rear-context-string . ", Up: Overview\n") + (position . 17674) + (filename . "/usr/share/info/make") + (info-node . "Bugs") + (handler . Info-bookmark-jump)) +("mediagoblin" + (filename . "~/git/mediagoblin/mediagoblin/notifications/__init__.py") + (front-context-string . "# GNU MediaGobli") + (rear-context-string) + (position . 1)) +("dired" + (front-context-string . "\n37.8 Shell Comm") + (rear-context-string . "les, Up: Dired\n") + (position . 293226) + (filename . "/usr/share/info/emacs") + (info-node . "Shell Commands in Dired") + (handler . Info-bookmark-jump)) +("emacs" + (front-context-string . "global keymap. ") + (rear-context-string . "ents a local or\n") + (position . 82448) + (filename . "/usr/share/info/emacs-23/efaq") + (info-node . "Modifying pull-down menus") + (handler . Info-bookmark-jump)) +("contacts" + (filename . "~/git/notes/personal/contacts.org") + (front-context-string . "time-stamp: <>\n\n") + (rear-context-string) + (position . 1)) +)+ \ No newline at end of file diff --git a/.gnus.el b/.gnus.el @@ -0,0 +1,6 @@ +;; rsd's gnus.el file. + +;;;;; ^ takes you to the *Server* that lists of servers Gnus knows +;;;;; about. +;;;;; +(setq gnus-select-method '(nntp "news.gwene.org"))