Skip to content

Instantly share code, notes, and snippets.

Trần Xuân Trường tmtxt

Block or report user

Report or block tmtxt

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gulpfile.js
var _ = require('lodash');
var gulp = require('gulp');
var browserify = require('browserify');
var watchify = require('watchify');
var transform = require('vinyl-transform');
var shimify = require('browserify-shim');
var plumber = require('gulp-plumber');
var uglify = require('gulp-uglify');
var notifier = require('node-notifier');
var util = require('gulp-util');
View tmtxt-key-bindings.el
;;; util functions for defining/undefining keys
;;; should be loaded at the end
(defun tmtxt/define-keys (key-map &rest ps)
"Define key binding pairs for KEY-MAP."
(declare (indent 1))
(let ((i 0))
(while (< i (length ps))
(if (= (mod i 2) 0)
(let ((src (elt ps i))
(dst (elt ps (1+ i))))
View tmtxt-key-bindings.el
;;; util functions for defining/undefining keys
;;; should be loaded at the end
(defun tmtxt/define-keys (key-map &rest ps)
"Define key binding pairs for KEY-MAP."
(declare (indent 1))
(let ((i 0))
(while (< i (length ps))
(if (= (mod i 2) 0)
(let ((src (elt ps i))
(dst (elt ps (1+ i))))
View tmtxt-git.el
;;; commit length
(tmtxt/set-up 'git-commit-mode
(setq git-commit-summary-max-length 70))
(add-hook 'git-commit-mode-hook
(lambda () (flyspell-mode 0)) t)
(add-hook 'magit-mode-hook 'magit-load-config-extensions)
(set-default 'magit-stage-all-confirm nil)
(setq magit-use-overlays nil)
View gulpfile.js
var gulp = require('gulp');
var browserify = require('browserify');
var literalify = require('literalify');
var source = require("vinyl-source-stream");
var underscore = require('underscore');
var react = require('gulp-react');
var plumber = require('gulp-plumber');
var less = require('gulp-less');
// define the libraries that live in the global context here
You can’t perform that action at this time.