Skip to content

Instantly share code, notes, and snippets.

View matthew-ball's full-sized avatar

Matthew Ball matthew-ball

  • Canberra, ACT, Australia
View GitHub Profile
;;; COMMENT: uniquify (unique buffer names)
(require 'uniquify)
(setq uniquify-buffer-name-style 'reverse
uniquify-separator "/"
uniquify-after-kill-buffer-p t ;; NOTE: rename after killing uniquified
uniquify-ignore-buffers-re "^\\*") ;; NOTE: don't muck with special buffers
;; WARNING: this requires ELPA has been run and created its directory (or just create the ELPA directory first)
(let ((default-directory (concat (expand-file-name user-emacs-directory) "elpa/")))
(normal-top-level-add-subdirs-to-load-path)) ;; NOTE: recursively add sub-directories to load-path
emacs --daemon # NOTE: start the emacs daemon
# startx & # NOTE: start the X server
# screen # NOTE: start a screen session
# emacsclient -t # NOTE: start an emacsclient terminal session
## COMMENT: if ~/.bashrc exists load it
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
;; FILE: /home/chu/Programming/lisp/elisp/ref-man/org-ref-man.el
;; AUTHOR: Matthew Ball (copyleft 2012)
;; TIME: Fri 25 May 2012 02:46:58 EST
;;; COMMENT:
;; Welcome to `org-ref-man', a reference manager for GNU Emacs utilising the functionality of `org-mode'.
;; The project's goals state:
;; 1. Creates and manages a database of source material.
;; 2. Interact with this database with emacs-lisp.
;; 3. Creates an `org-mode' buffer with the database information.
;; FILE: /home/chu/Programming/lisp/elisp/simple-dot-emacs.el
;; AUTHOR: Matthew Ball (copyleft 2012)
;; TIME: Wed 23 May 2012 15:27:03 EST
;; COMMENT:
;; The *Simple GNU Emacs* configuration.
;; Primarily designed for "modern" users:
;; - Completely new fundamental key design.
;; - Simplistic interface design.
;; This is an attempt to "bring GNU Emacs to the masses", so to speak.
(let ((default-directory (concat (expand-file-name user-emacs-directory) "elpa/")))
(if (file-exists-p default-directory) ;; NOTE: if the directory exists ...
(normal-top-level-add-subdirs-to-load-path) ;; NOTE: recursively add sub-directories to `load-path' variable
(message "TODO: create directory!"))) ;; NOTE: ... else create it ...
(defun my-org-extract-link ()
"Extract the link location at point and put it on the killring."
(interactive)
(save-excursion
;; TODO: capture `file-name' details
;; TODO: capture `title' details
(when (org-in-regexp org-bracket-link-regexp 1)
(let ((record-file (org-link-unescape (org-match-string-no-properties 1)))
(record-title (org-link-unescape (org-match-string-no-properties 3))))
(message (concat "File: " record-file ", Title: " record-title))))))
;; FILE: /home/chu/.conf-scripts/stumpwm-dir/init.lisp
;; AUTHOR: Matthew Ball (copyleft 2012)
;; TIME: Wed 16 May 2012 15:06:40 EST
;;; COMMENT: lisp implementation
;debian=sbcl
;;; COMMENT: initial config
(in-package :stumpwm) ;; NOTE: declare the package scope
;; FILE: /home/chu/Programming/lisp/elisp/ref-man/org-ref-man.el
;; AUTHOR: Matthew Ball (copyleft 2012)
;; TIME: Fri 25 May 2012 02:46:58 EST
;; FILE: /home/chu/Programming/lisp/elisp/ref-man/org-ref-man.el
;; AUTHOR: Matthew Ball (copyleft 2012)
;; TIME: Fri 25 May 2012 02:46:58 EST
;;; COMMENT:
;; Welcome to `org-ref-man', a reference manager for GNU Emacs utilising the functionality of `org-mode'.
;; The project's goals state:
;; 1. Creates and manages a database of source material.
;; 2. Interact with this database with emacs-lisp.
;; 3. Creates an `org-mode' buffer with the information read from the database.