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
// See http://saicharan.in/blog/2011/10/09/gitweb-with-sidebyside-diff/ | |
$(document).ready(function() { | |
// Assumption: rem for left file, add for right file. | |
// => This follows from the assumption that additions | |
// are possible only for the right file. | |
$(".patch").each( function( name ) { | |
$.divp = $('<div/>', { class: "patch", id: $(this).attr('id') }); // div patch | |
$.diva = $('<div/>', { class: "patch a", id: $(this).attr('id')+'-a' }); // div for left file | |
$.divb = $('<div/>', { class: "patch b", id: $(this).attr('id')+'-b' }); // div for right file |
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
;; jekyll.el | |
;; | |
;; Emacs support for Jekyll blogs. | |
;; | |
;; To use, just put this file somewhere in the load path and | |
;; (require 'jekyll) | |
;; | |
;; Here are my key bindings: | |
;; C-c b d - Show all drafts | |
;; C-c b p - Show all posts |