Skip to content

Instantly share code, notes, and snippets.

@mikeonly
mikeonly / surfingkeys.txt
Last active December 13, 2022 21:57
My Surfingkeys Config
api.unmap("a")
api.unmap("d")
// make "ga" be "Open in a new tab"
api.map("ga", "af")
// make "J" scroll one page
api.map("J", "d")
api.map("d", "R");
;;; markdown-edit-mode.el --- provide markdown-editing environment
(make-local-variable
(defvar markdown-prev-theme spacemacs--cur-theme))
(defcustom markdown-edit-mode-hook nil
"The hook to run when markdown-edit-mode is toggled."
:type 'hook)
(defcustom markdown-edit-theme 'leuven
"Theme to load for markdown environment.")
@mikeonly
mikeonly / key-translation-map.el
Last active March 7, 2016 05:24
Code from SO for international layout support
;; Commentary:
;; Code from SO for international layout support. Defines key-translation map automatically.
;; Source: http://stackoverflow.com/a/10872534/3885799
(loop
for from across "йцукенгшщзхъфывапролджэячсмитьбюЙЦУКЕНГШЩЗХЪФЫВАПРОЛДЖ\ЭЯЧСМИТЬБЮ№"
for to across "qwertyuiop[]asdfghjkl;'zxcvbnm,.QWERTYUIOP{}ASDFGHJKL:\"ZXCVBNM<>#"
do
(eval `(define-key key-translation-map (kbd ,(concat "C-" (string from))) (kbd ,(concat "C-" (string to)))))