This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; 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.") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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))))) |