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
(add-to-list 'auto-mode-alist '("\\.jsx$" . web-mode)) | |
(defadvice web-mode-highlight-part (around tweak-jsx activate) | |
(if (equal web-mode-content-type "jsx") | |
(let ((web-mode-enable-part-face nil)) | |
ad-do-it) | |
ad-do-it)) |
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
gulp.task("js:crypto", function() { | |
var browserify = require("browserify"); | |
var source = require("vinyl-source-stream"); | |
var b = browserify({ | |
basedir: "./" | |
}); | |
b.require("crypto", {expose: "crypto"}); | |
return b.bundle() | |
.pipe(source("crypto.js")) | |
.pipe(gulp.dest(jsOutPath)); |
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
(defun ublt/define-keys (key-map &rest ps) | |
"Define key binding pairs for KEY-MAP." | |
(let ((i 0)) | |
(while (< i (length ps)) | |
(if (= (mod i 2) 0) | |
(let ((src (elt ps i)) | |
(dst (elt ps (1+ i)))) | |
(define-key key-map | |
(read-kbd-macro src) (if (stringp dst) | |
(read-kbd-macro dst) |
NewerOlder