Skip to content

Instantly share code, notes, and snippets.

View peccu's full-sized avatar
🦉
Information is the network

peccu peccu

🦉
Information is the network
View GitHub Profile
@peccu
peccu / lem.ros
Last active August 27, 2015 01:22
launch lem from shell
#!/bin/sh
#|-*- mode:lisp -*-|#
#|
exec ros -Q -- $0 "$@"
|#
(ql:quickload :lem)
(defun main (&rest argv)
(declare (ignorable argv))
(if (car argv)
(lem:lem (car argv))
@peccu
peccu / input.org
Created May 28, 2015 01:42
show today's org-clock logs

Tasks

Task A

Sub Task A-1

Sub Task A-2

Task B

Sub Task B-1

@peccu
peccu / resume-helm-or-anything.el
Created July 2, 2015 01:50
anything-resumeとhelm-resumeをC-uで呼び分ける
(defun resume-helm-or-anything (arg)
(interactive "p")
(case arg
(4 (call-interactively 'anything-resume))
(t (call-interactively 'helm-resume))))
(global-set-key (kbd "C-.") 'resume-helm-or-anything)
@peccu
peccu / README.org
Last active August 29, 2015 14:26
元記事をよむ.リンクに飛ぶ
@peccu
peccu / view-docset.sh
Last active August 29, 2015 14:27
View Docset in terminal(Concept version)
#!/bin/bash
function collect-docset(){
local query delimiter sql docPath awkscript
# query keyword
query=$1
# delimiter
delimiter=' <<===>> '
@peccu
peccu / helm-dash-install-all-installed-docsets.el
Last active August 29, 2015 14:27
Install docsets installed by Dash.app for helm-dash.el
(require 'helm-dash)
(setq helm-dash-browser-func 'eww)
;; 適応させたいモードとdocsetを記入
(defun my-set-doctype-for-helm-dash ()
(setq-local helm-dash-docsets
(case major-mode
(js2-mode '("JavaScript" "AngularJS" "NodeJS" "jQuery" "UnderscoreJS"))
(php-mode '("PHP" "CakePHP"))
(web-mode '("HTML" "Emmet" "AngularJS"))
@peccu
peccu / quix.txt
Created February 17, 2010 05:54
Quix.txt
> This is a Quix Command File
>
> For the syntax of this file, please refer to http://quixapp.com/syntax/
>
@Basic commands
@These are the most basic commands Quix offers, but possibly also the most powerful ones.
a http://www.amazon.com/s/?field-keywords=%s Amazon Search
d http://www.google.com/search?q=define:%s Google Define a word
dict http://www.google.com/dictionary?langpair=en%7Cen&q=%s&hl=en&aq=f Google Dictionary for a word
;;====================================
;;; 折り返し表示ON/OFF
;;====================================
(defun toggle-truncate-lines ()
"折り返し表示をトグル動作します."
(interactive)
(if truncate-lines
(progn ; 折り返さない
(setq truncate-lines nil)
;; 以下のファイルに,自分なりの解釈をコメントしてみた by peccu
;; http://www.unixuser.org/~ysjj/emacs/lisp/keybind-config.el
;;; keybind-config --- keybind file
;; Copyright (C) 1999-2001 YAMASHITA Junji
;; Author: YAMASHITA Junji <ysjj@unixuser.org>
;; Keywords: config, keybind
;; Version: $Id: keybind-config.el,v 1.21 2002/02/04 08:18:42 ysjj Exp $
;; cf.http://d.hatena.ne.jp/grandVin/20080912/1221245359
;; どうもこれでできてるらしいけど,自分のためにも自作してみた
;; だいたい下のような設定になっていれば
;; `bm-repository'にbookmarkのリストが入っている
;; これをanythingで選択して,jumpできるようにする
;; (setq-default bm-buffer-persistence t)
;; (add-hook' after-init-hook 'bm-repository-load)
;; (add-hook 'find-file-hooks 'bm-buffer-restore)
;; (add-hook 'kill-buffer-hook 'bm-buffer-save)