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
;;;tabbar github https://github.com/dholm/tabbar | |
;;http://d.hatena.ne.jp/tequilasunset/20110103/p1 | |
;;http://d.hatena.ne.jp/plasticster/20110825/1314271209 | |
(require 'tabbar) | |
(tabbar-mode 1) | |
;;; Don't enable mouse wheel on tab bar | |
(tabbar-mwheel-mode nil) | |
;;; Don't use group tab |
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 'request) ;; https://github.com/tkf/emacs-request | |
(defvar ginger-rephrase-end-point | |
"http://ro.gingersoftware.com/rephrase/rephrase") | |
;;;###autoload | |
(defun ginger-rephrase (&optional $text $beg $end) | |
(interactive) | |
(lexical-let* (($text | |
(cond ($text $text) |
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 org-table-convert-on-the-spot (&optional format) | |
(interactive) | |
(unless (org-at-table-p) (user-error "No table at point")) | |
(org-table-align) ;; make sure we have everything we need | |
(let* ((beg (org-table-begin)) | |
(end (org-table-end)) | |
(txt (buffer-substring-no-properties beg end)) | |
(formats '("orgtbl-to-tsv" "orgtbl-to-csv" | |
"orgtbl-to-latex" "orgtbl-to-html" | |
"orgtbl-to-generic" "orgtbl-to-texinfo" |
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
;; Region lines and then `M-x osx-say' to make OSX speak. | |
;; Adjust speak speed | |
(setq osx-say-speed 180) | |
;; Change voice | |
;; Kathy, Vicki, Victoria, Alex, Bruce, Fred | |
(setq osx-say-voice "Alex") | |
(setq osx-say-buffer "*osx say*") |
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 'mykie) | |
(defun my-wrap-region (&optional $open $close) | |
(interactive) | |
(when mark-active | |
(let (($beg (region-beginning)) | |
($end (region-end))) | |
(deactivate-mark) | |
(goto-char $end) | |
(insert $close) |
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 'mykie) | |
;;; Temporarily remember any text/buffer | |
;; Example. | |
;; Region an area -> Copy & Regist [M-5 w] -> Past [M-5 y] | |
;; Region an area -> Copy & Regist [M-3 w] -> Past [M-3 y] | |
;; Regist buffer [M-3 B] -> Switch buffer [M-3 b] | |
;; Regist buffer [M-8 3 B] -> Switch buffer [M-8 3 b] | |
;; Describe list |
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
;; On the overlay, do `M-: (my-get-overlay-property-list-at)` | |
;; Return cons list like below | |
;; ((edit-buffer . t) (face . helm-swoop-target-word-face)) | |
(defun my-get-overlay-property-cons-list-at (&optional $position) | |
(interactive) | |
"Get overlay property cons list at the argument $position pointed, | |
or the cursor on. " | |
(or $position (setq $position (point))) |
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
;; http://lists.gnu.org/archive/html/help-gnu-emacs/2007-05/msg00975.html | |
(defvar sticky-buffer-previous-header-line-format) | |
(define-minor-mode sticky-buffer-mode | |
"Make the current window always display this buffer." | |
nil " sticky" nil | |
(if sticky-buffer-mode | |
(progn | |
(set (make-local-variable 'sticky-buffer-previous-header-line-format) |
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
;; Wilfred / ht.el | |
;; https://github.com/Wilfred/ht.el | |
(setq $h1 (ht (1 8888) | |
(2 "ABCDE") | |
(3 "Emacs Lisp") | |
(4 "Emacs"))) | |
;; => #s(hash-table size 65 test equal rehash-size 1.5 rehash-threshold 0.8 data | |
;; (1 8888 2 "ABCDE" 3 "Emacs Lisp" 4 "Emacs")) |
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 baz1 (arg) | |
arg) | |
(defsubst baz2 (arg) | |
arg) | |
;; ---------------------------------------------------------------------- | |
(defsubst foo1 (aaa) | |
(baz1 aaa) | |
(baz2 aaa)) |
OlderNewer