Skip to content

Instantly share code, notes, and snippets.

@daimatz
daimatz / mac.ahk
Last active February 28, 2022 00:20
Example of AutoHotkey. Mac like keybinds
;================================================================
;mac風キーバインド(Cmd+Q) など
; https://gist.github.com/daimatz/1385713
;================================================================
#InstallKeybdHook
#UseHook
;================================================================
;関数
@daimatz
daimatz / dictionary-app.el
Created September 20, 2011 01:43
Emacs Lisp Tips
;; Mac の Dictionary.app を、 Emacs の popwin.el から使う
;; dict.py is from http://sakito.jp/mac/dictionary.html
(defun dictionary ()
"dictionary.app"
(interactive)
(let ((word (if (and transient-mark-mode mark-active)
(buffer-substring-no-properties (region-beginning) (region-end))
(read-string "Dictionary: ")))
(cur-buffer (current-buffer))
(tmpbuf " * dict-process *"))