about summary refs log tree commit diff
path: root/emacs/.emacs.d/wpc/keymap.el
blob: 87d340fcdbf1082be1c8ec4af8c369d07ee8df5f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
;;; keymap.el --- Working with Elisp keymaps -*- lexical-binding: t -*-
;; Author: William Carroll <wpcarro@gmail.com>

;;; Commentary:
;; Very much a work-in-progress.

;;; Code:

(require 'macros)
(require 'symbol)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Library
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

(defun keymap/pretty-print (x)
  "Pretty prints `X'."
  ;; TODO: Work-in-progress
  (s-concat "\\{" (symbol/to-string x) "}"))

(macros/comment
 (keymap/pretty-print lispyville-mode-map))

(provide 'keymap)
;;; keymap.el ends here