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
"loadavg5", | |
"memory.total", | |
"memory.free", | |
"memory.buffers", | |
"memory.cached", | |
"memory.swap_cached", | |
"memory.active", | |
"memory.inactive", | |
"memory.swap_total", | |
"memory.swap_free", |
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
(require 'vc-git) | |
(defun git-browse-remote-at-point (rev) | |
(interactive "P") | |
(let* ((root (vc-git-root buffer-file-name)) | |
(default-directory root) | |
(line (if (use-region-p) | |
(format "%d,%d" | |
(line-number-at-pos (region-beginning)) | |
(line-number-at-pos (region-end))) |
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
#include <string> | |
#include <vector> | |
#include <set> | |
#include <map> | |
#include <utility> | |
#include <cstdlib> | |
#include <cstdio> | |
#include <cmath> | |
#include <iostream> | |
#include <queue> |
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
(require 'my-git) | |
(require 'anything-config) | |
(provide 'anything-git-grep) | |
(defun anything-git-grep-process () | |
(anything-aif (anything-attr 'default-directory) | |
(let ((default-directory it)) | |
(apply 'start-process "git-grep-process" nil | |
"git" "--no-pager" "grep" "--full-name" "-n" "--no-color" | |
(nbutlast |
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
;; override isearch.el | |
(lexical-let | |
((original-function (symbol-function 'isearch-lazy-highlight-update))) | |
(defun isearch-lazy-highlight-update () | |
(mapc (lambda (window) | |
(save-selected-window | |
(select-window window) | |
(let ((isearch-lazy-highlight-window (selected-window)) | |
(isearch-lazy-highlight-window-start (window-start)) | |
(isearch-lazy-highlight-window-end (window-end)) |
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
(require 'vc-git) | |
(provide 'my-git) | |
(defun my-git-toplevel () | |
(vc-git-root (file-truename (if (buffer-file-name) | |
(file-name-directory (buffer-file-name)) | |
default-directory)))) | |
;; return git toplevel of root project | |
(defun my-git-root () |
OlderNewer