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
PROMPT=$E[33;1m$P$E[m$E[1m$_$$$S |
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
;; Narrow to the current buffer is somethimes weird because you loose | |
;; the ability to see other parts of the buffer. One way is to first | |
;; create a clone of the current buffer. However, when this is | |
;; repeated, clones accumulate. | |
;; This hack just allows to kill clones when ending the narrowing, | |
;; allowing transparent workflow without manual buffer bookkeeping. | |
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
// ==UserScript== | |
// @name Github font changer | |
// @namespace local.greasemonkey.githubfontchanger | |
// @include https://*github.com/* | |
// @include http://lists.gnu.org/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
var fontdef = |
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
;; I don't want to introduce tabs in my code; but I don't want to break Makefiles, | |
;; or to introduce diffs in third party code. | |
;; Here is my solution: | |
(defun my-untabify-buffer () | |
"Untabify the current buffer, unless `my-untabify-this-buffer' is nil." | |
(and my-untabify-this-buffer (untabify (point-min) (point-max)))) | |
(define-minor-mode my-untabify-mode | |
"Untabify buffer on save." nil " untab" nil |
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
;; I happen to use a lot the command `zap-to-char', which prompts for | |
;; a character, and deletes from the point to the character, | |
;; included. However, it is not repetition friendly: when you call the | |
;; `repeat' command, you are prompted again for the character. | |
;; So, if you would like to zap to the character # four times, you | |
;; have to press | |
;; M-z # M-z # M-z # M-z # ; call repeatedly `zap-to-char'. | |
;; or |