Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Emacs Lisp 学习笔记

Chi Zhang
October 17, 2012

Emacs Lisp 学习笔记

Chi Zhang

October 17, 2012
Tweet

Other Decks in Programming

Transcript

  1. + - * / 1+ 1- /= = > <

    equal and or not
  2. (defun add-py-header () "check and add # -*- coding: utf-8

    -*-" (interactive) (let ((pyheader "# -*- coding: utf-8 -*-")) (if (not (equal pyheader (buffer-substring-no- properties 1 (1+ (length pyheader))))) (progn (goto-char 1) (insert (concat pyheader "\n\n")))))) https://gist.github.com/3795035/