Meadow
ããã«ä»¥ä¸ã®ãã㪠elisp ãæ¸ãã¦ãã°ããçµã¤ã®ã ãã©ã å®éã«ã¯ elscreen-howm ã®åé¤æ©è½ã常ç¨ãã¦ããã ;; ä¸è¦§è¡¨ç¤º(C-c , a )㧠d ããã¨ãã¡ã¤ã«ãåé¤ (define-key howm-view-summary-mode-map "d" 'delete-howm-file) (defun delete-howm-file â¦
id:rubikitch ããã® open-junk-fileã§éããããã¡ããelscreen ã®æ°ããã¹ã¯ãªã¼ã³ã§éãããã«ããã (defun open-junk-file () (interactive) (let* ((file (expand-file-name (format-time-string "%Y/%m/%Y-%m-%d-%H%M%S." (current-time)) "~/My Dropâ¦
Dropbox ã¯ä¾¿å©ãDropbox ã¯å大ã .emacs ã®åæã¯ãã£ã¨ããããããã¨æãã¤ã¤ãæ¾ç½®ãã¦ãã¦ããã*1 ã§ãããããéãè °ãä¸ãã¦åæããã®ã§ã¡ã¢ãã¦ããã*2 ãã¹ã¯ãããã¯å®¶ã§ä½¿ã£ã¦ããã¤ã§ããã¼ãã¯å¤ã§ä½¿ã£ã¦ããã¤ã .emacs ã¯å¤§ä½ä¼¼ããããªâ¦
ããå«ã â¦ãã°ãã使ããªãã§ç½®ãã¨æ¯å使ããªããªãâ¦ã ããã¦ãã®åº¦ã«ãããªãã®æéãããã¦ãã¤ã®ã¾ã«ã使ããããã«ãªãã ãããããã©ã¹ãããªããªãã ãã£ã¨å ¨ç¶æããããªãã¨ããã«åå ããããã ãããªãã ããããããä¸åº¦ã¯ã¦ãã©ä½¿ã£ã¦ã¿ãâ¦
hatena-mode ã§ãM-x hatena-get-webdiary ãã¦éå»ã®æ¥è¨ãåã£ã¦ãã¦ã ããã¤ã utf-8-unix ã§ãã¹ãããã¨ããã©ã¦ã¶ã§è¦ãã¨ãã«æååããã¦ããMeadow ã§ãã¡ã¤ã«ãéããã¨ãã«ã èªåçã« utf-8-unix ã«å¤æããããã«ãã¦ããã®ã ãã©ããã®è¨å®ãâ¦
anything ã®è¨å®ã§ã«ã¼ã½ã«ãã¼ã使ããªãã¦ãä¸ä¸ç§»åãã§ãããã㫠以ä¸ã®è¨å®ãæ¸ãã¦ããã®ã ãã©ããã¤ã®ã¾ã«ããããªããªã£ã¦ããã (define-key anything-map "\C-p" 'anything-previous-line) (define-key anything-map "\C-n" 'anything-next-lineâ¦
æ°ãã PC ã«ã¾ã XP ãå ¥ãã¦åããã¦ããã®ã ãã© ä»ã¾ã§æç¨ãã¦ãã Meadow ããã®ã¾ã¾æã£ã¦ã㦠cygwin ã® curl ãå ¥ããããããªãåãã¦ãããã .hatena ã使ãåããªãã£ãã®ãããã£ãã®ãããããªãã ãã£ã¨æéããããã¨æã£ã¦ããã©ããã£ãâ¦
.gitconfig ã«ä»¥ä¸ã®ããã«æ¸ãã¦ãã㨠git commit ããã¨ãã« Emacs ã§ã³ãããã¡ãã»ã¼ã¸ãæ¸ããã [core] editor = emacsclientw ããã§ãã³ãããã¡ãã»ã¼ã¸ã«æ¥æ¬èªãæ¸ã度㫠C-x RET f utf-8 ãã¦ããã³ããããã¦ããã ãã© æ¯åããã®ãé¢åã«ãªâ¦
javascript-mode ã®æåããããããªã£ã¦ãããç´ããã¨ãããã ãã© ããæ©ä¼ã ããã¾ã js2-mode ã試ãã¦ã¿ãã ããããããæãã ã£ãã®ã§ä»åº¦ããä¹ãæãããã¨ã«ããã js2-modeã使ãããããã - speg03ã®æ¥è¨ãåãããããã¾ã¨ã¾ã£ã¦ãã¦å¤§å¤å©â¦
ã§ãã©ããã¦ä½¿ããããã«ãªã£ãã®ããµãããªåããã⦠ãã£ã¨åã« hatena-mode 使ãåºããã¨ããã¨ãã åããããªæãã§ä½¿ããªãã£ããã ããªã¼ã å¬ãããã©ã¹ãããªããªãã ã¾ãåããããªãã¨ã«ãªã£ããã©ãããã (´ã»Ïã»ï½) ã¨ããããæå¾ãã¾ããâ¦
ã¯ã¦ãªã¢ã¼ãã®ä½¿ãæ¹ãå¿ãã¦ãã¦ã¡ãã£ã¨é©ããã ä½ãèããªãã¦ããM-x hatenaããå ¥åã§ãã¦ããã¯ããªã®ã« ãããï¼ã©ããã£ã¦èµ·åãããã ã£ãããªï¼ãã¨ä¸ç¬åãããªããªã£ãã ãã¨ãã¹ãã®ä»æ¹ãå¿ãã¦ãã¦ããC-c C-cãã¨ããã¨ããã ééã£ã¦ãâ¦
windows.elãããelscreen.elã®æ¹ã使ãããã - gan2 ã® Ruby åå¼·æ¥è¨ãã ãã£ã¨ elscreen ãæç¨ãç¶ãã¦ããã®ã ãã©ã ã¿ãã使ãã elscreen ããã ã¦ã£ã³ãã¦ã®åå²æ å ±ãä¿åãã¦ãããã¨ãã windows ã®æ¹ã 便å©ãªããããªããã¨æãã¦ããã®ã§â¦
(defface my-face-f-2 '((t (:foreground "LightSeaGreen"))) nil) (defvar my-face-f-2 'my-face-f-2) (defun my-dired-today-search (arg) "Fontlock search function for dired." (search-forward-regexp (concat (format-time-string "%m-%d" (current-tâ¦
repl.enter(content.wrappedJSObject) ãå®è¡ããã°æ®éã«ã$ãã¨ãã«ã¢ã¯ã»ã¹ã§ããããã«ãªããã¨ãåãã£ãã ãã®ã³ãã³ã㯠Firefox3 ç¨ã®ãã®ã§ãFirefox2 ã§ã¯ä»£ããã« repl.enter(content)ã¨ããã°ããããããã ä¾ãã°prototype.js ã®å ¬å¼ãã¼ã¸ã«â¦
ãC-x r k (kill-rectangle)ãã¯ãããã©ãcopy-rectangleãã¯ãªãã ãC-x r r (copy-rectangle-to-register)ãã¯ããã®ã§ ã¬ã¸ã¹ã¿ãçµç±ããã°ã§ããã¿ããã ãã© ã¬ã¸ã¹ã¿ä½¿ããªãã§ç©å½¢ã³ãã¼ã£ã¦ããã®ã¯ã§ããªã®ããªï¼ ã¾ãã§ããªããªãã§ããªãã§ãâ¦
js2-mode ã® customize - 4n0+h3r p13c35ã§ãcustomizeãããå§ãããã¦ããã®ã§è©¦ãã¦ã¿ãã face ã¨ãã®è¨å®ããããã¨ãã¯ãM-x customize-aproposãã使ã㨠ããããé ç®ããã£ã¨è¦ããã®ã§ä¾¿å©ãªãã¨ãåãã£ãã ã§ããM-x customize-aproposã ã§ãâ¦
JavaScript æ¸ãã¨ãã¯ä½¿ãã¾ãããã㪠flymake ã ã£ããã© Ruby ã§ã¯ä½¿ã£ã¦ããªãã£ãã®ã§ä½¿ããããã«ããã flymake ã§ãªã¢ã«ã¿ã¤ã ææ³ãã§ã㯠- ã¨ããããæã ã£ããä½ã¨ãªãå§ããããã°ãåè㫠以ä¸ã .emacs ã«è¿½å ããã ;; flymake for ruby (â¦
yasnippet ãå°å ¥ãã¦ã¿ã - gan2 ã® Ruby åå¼·æ¥è¨ã§ã¯ããããã®ãã¯ããé ããããã ãã©ã å½ã®åã¯ã¨ããã°ãå®ã¯ãã以æ¥æ¥ã«æ¥ã« yasnippet ã®ä½¿ç¨é »åº¦ãä½ä¸ãã¦ãã éã«ã¯å ¨ã使ããªãããã«ãªã£ã¦ãã¾ã£ã¦ããã ã¨ããã®ã¯ããã¹ãã¼ã¹ããªã¬ã¼â¦
Emacs 㧠JavaScript ãæ¸ããåèã«ãã¦å°ãè¨å®ã追å ããã ;;; js2-mode ;; ã¨ã©ã¼ã®å¤å®å¦çãæ°ã«ãªã (autoload 'js2-mode "js2" nil t) (add-to-list 'auto-mode-alist '("\\.js$" . js2-mode)) (add-hook 'js2-mode-hook '(lambda () (setq js2-bouâ¦
ãããããã«å¿ããªãã ãã¼ã¨ã¯æã£ã¦ãããã®ã® 以åããããªé¢¨ã«æã£ã¦ãã¦ãã°ããããããããµãã«ãªã£ã¦ããã®ã§ è¨æ¶ã«å®çããããã¨ãç¥ãã¤ã¤ã¡ããã¨æ¸ãã¦ããã åºæ¬ 以ä¸ã®2ã¤ãè¦ãã¦ããã°ã¾ã大ä¸å¤«ã æååããã¦ãã¨ã (UTF-8 ã®ãã¡ã¤â¦
Emacs ã§ã¯ãC-SPCãã§ãã¼ã¯ãã»ãããã¦ã以éãªã¼ã¸ã§ã³ãé¸æã§ããç¶æ ã«ãªãã sense-regionã使ãã¨ãC-SPCããæ¼ããã¨ã«ãªã¼ã¸ã§ã³ã®é¸æã¨ç©å½¢é¸æãåãæããããããã«ãªãã ãC-x rãã§ã¯ãããé常ã®ç©å½¢é¸æã ã¨ããªã¼ã¸ã§ã³ã®é¸æã¨è¦è¦çâ¦
xmpfilter ã便å©ãããã®ã§ããã£ã¦ã¿ãããrcodetools ã«å«ã¾ãã¦ãããã¨ãåãã£ãã rcodetoolsãè¦è¦ãã¯ãããã©ä½ãªã®ãã¯ããåãã£ã¦ãªãã ã¨ãããã gem ã§å ¥ãã¿ãããªã®ã§å ¥ãã¦ã¿ãã gem install rcodetoolsrcodetools ã«ã¯ Emacs ç¨ã®ã¤ã³â¦
ä»ã®ã¨ãã .emacs ã«ãããªæãã®è¨å®ããã¦ãã (é½åã«ããã»ã¨ãã©ã®è¨å®ã¯ã³ã¡ã³ãã¢ã¦ããã¦ãã)ã ;;;; æ¥æ¬èªç°å¢ã®è¨å® ;; ;; 以ä¸ã®3ã¤ã¯ set-language-environment ãããå ã«æ¸ãã¦ããå¿ è¦ããã ;; (require 'un-define) ;; (require 'un-tooâ¦
ã#' (ã·ã£ã¼ãã¯ã©ã¼ã)ããä½ãªã®ãåãããªãã¦èª¿ã¹ãã®ã§ã¡ã¢ãã¦ããã ã#'ãã¯ãfunctionãã¨åãæå³ ã'ãããquoteãã®ãããã«ä½¿ããã®ã¨ãã£ãã é¢æ°ãã¯ãªã¼ãããã¨ãã¯ã'ããããã#'ãã使ãæ¹ãããã¨ããã¦ãã ãããã'ãã¨ã#'ãã¯å®â¦
Emacs Lisp TIPS ãªãã§ããä»ã¾ã§ä½¿ã£ã¦ãªãã£ããã ããâ¦ã èãã¦ã¿ãããã¡ãã¡ã³ãã³ãã©ã¤ã³ãããruby hoge.rbãã¨ãã£ã¦å®è¡ããã®ã£ã¦é¢åã ããªãã ãsmart-compileãã使ãã¨ããã¡ã¤ã«ãç·¨éä¸ã«èªåã®å¥½ããªãã¤ã³ãã§ã³ã³ãã¤ã«ãå®è¡ã§ã㦠â¦
ãM-: (eval-expression)ã㧠(expand-filename (buffer-name)) ãå®è¡ããã° OKã ãããæ¸ãã¦ã¦æãã ããã CodeRepos ã§ã³ãããããã¨ãã¯ãã³ã¡ã³ãã« ãlang/javascript/userscripts/hogehoge.user.jsã ã®ãããªãã¹ãæ·»ããã®ãããã¼ã¿ãããªãã â¦
ãtabifyãã¨ãuntabifyãã使ãã ãã£ã¨å ·ä½çã«è¨ãã°ãC-x h (M-x mark-whole-buffer)ãã§ã½ã¼ã¹ã³ã¼ãå ¨ä½ãé¸æãã¦ãã ãã½ãã â ãã¼ãããªããM-x tabifyããå®è¡ããã ããã¼ã â ã½ããããªããM-x untabifyããå®è¡ããã ãC-M-% (M-x queryâ¦
Ruby ã®å ´åãªã以ä¸ã®ããã« puts ãªã©ãåå®ç¾©ãã¦ãããã¨ã§ ã¨ããããã¯è§£æ±ºãããããã«æããã alias :_puts :puts def puts(*args) _puts *args $stdout.flush end è¿½è¨ ãããã¡ãªã³ã°ã®åé¡ã®ããã ãããåå®ç¾©ããªãã¦ãã$stdout.sync = trueâ¦
åã¯ä»¥ä¸ã®ãããªè¨å®ã .emacs ã«è¿½å ãã¦ããã®ã ãã© (setq eshell-output-filter-functions (list 'eshell-handle-ansi-color 'eshell-handle-control-codes 'eshell-watch-for-password-prompt)) (add-hook 'eshell-mode-hook 'ansi-color-for-comint-mâ¦
ãC-c C-kãã¯ãeshell-kill-processãã«å²ãå½ã¦ããã¦ã㦠ãããå¼ã¹ã°ããããã©ããªã¨ãã§ã eshell ãçµäºããããã¨ãã§ããã eshell 㧠autotest ãåããã¨ãC-cããã¦ãçµäºã§ããªãã¦å°ã£ã¦ããã®ã ãã© ããããããã¯å¤§ä¸å¤«ããã ããããã¨ãâ¦