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
(setq mac-option-key-is-command t) | |
(setq mac-option-modifier 'super) | |
(setq mac-command-key-is-meta t) | |
(setq mac-command-modifier 'meta) |
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
# -*- coding: utf-8 -*- | |
# name: def | |
# contributor: Orestis Markou | |
# contributor: Yasser González Fernández <yglez@uh.cu> | |
# key: def | |
# -- | |
def ${1:name}($2): | |
"""$3 | |
${2:$ | |
(let* |
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
// This File is imported last, and will override other styles in the cascade | |
// Add styles here to make changes without digging in too much | |
html{ | |
background: url('/images/bg.png') repeat center top; | |
} | |
body > header{ | |
background-color: transparent; | |
} |
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 indent-hint-mode (&optional l lst) | |
(interactive) | |
(let* ((c '(indent-hint-current-column)) | |
(lst (or lst '(("^[ \t]*\\([^ \t]\\)")))) | |
(lst (if l lst (reverse lst)))) | |
(indent-hint-init l) | |
(dolist (x lst) | |
(indent-hint (car x) c (cadr x))))) | |
;;根据上面的mode改进的希望的tab mode | |
(defun indent-hint-tab-mode (&optional l lst) |
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
$(function(){ | |
$('a[href*=#]').click(function() { | |
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') | |
&& location.hostname == this.hostname) { | |
var $target = $(this.hash); | |
$target = $target.length && $target || $('[name=' + this.hash.slice(1) +']'); | |
if ($target.length) { | |
var targetOffset = $target.offset().top; | |
$('html,body').animate({scrollTop: targetOffset}, 1000); | |
return false; |
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
;; Webpage: http://emacswiki.org/emacs/ParEdit | |
(require 'paredit) | |
(add-hook 'emacs-lisp-mode-hook (lambda () (paredit-mode 1))) | |
(add-hook 'lisp-mode-hook (lambda () (paredit-mode 1))) | |
(add-hook 'lisp-interaction-mode-hook (lambda () (paredit-mode 1))) | |
(add-hook 'python-mode-hook (lambda () (paredit-mode 1))) | |
(add-hook 'scheme-mode-hook (lambda () (paredit-mode 1))) | |
(add-hook 'clojure-mode-hook (lambda () (paredit-mode 1))) | |
;;https://github.com/grettke/parenface |
NewerOlder