Skip to content

Instantly share code, notes, and snippets.

@aarvid
aarvid / hyperspec-window.el
Created September 4, 2017 16:50
hyperspec other window, q to close.
(defadvice common-lisp-hyperspec
(around hyperspec-lookup-w3m () activate)
(let* ((window-configuration (current-window-configuration))
(browse-url-browser-function
`(lambda (url new-window)
(w3m-browse-url url nil)
(let ((hs-map (copy-keymap w3m-mode-map)))
(define-key hs-map (kbd "q")
(lambda ()
(interactive)
@aarvid
aarvid / gist:6753155
Created September 29, 2013 14:53 — forked from death/gist:6740474
(defpackage #:subsystem.hack
(:use #:cl)
(:export #:patch-subsystem)
(:import-from #:nibbles
#:read-ub16/le #:read-ub32/le #:write-ub16/le))
(in-package #:subsystem.hack)
(defun subsystem-position (stream)
(file-position stream 0)
@aarvid
aarvid / bcycle.el
Created September 6, 2013 15:10
modification of bcycle. https://github.com/dalkire/bcycle
;;; bcycle.el --- buffer cycling with skip patterns
;; https://github.com/dalkire/bcycle
;; Intro
;; --------------------
;; This file is a simple alternative to next-buffer/previous-buffer.
;; It adds the ability to include patterns to match buffers to skip.
;; Usage
@aarvid
aarvid / slime-documentation-search.el
Last active December 21, 2015 04:39
Slime documentation search for 4 common lisp search engines on the web.
;; refactoring from Ben Hyde's slime-documentation-search
;; https://gist.github.com/bhyde/5735219
;; this creates 8 kbd shortcuts to 4 lisp search engines
;; by specifying a key.
;; C-c C-d key should browse with the emacs default browser (my case w3m)
;; C-c C-d C-key should browse with the OS default browser
;; C-c C-d is the default for the slime-doc-map
(defvar slime-documentation-format-quickdocs