You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
Rubyã®rbenvãPHPã®phpenvã¨åãããã«ãEmacsã«ããã¼ã¸ã§ã³ããã¼ã¸ã£ãããã¾ãã ã¾ããã ãããã®äººã¯ææ°ã®Emacsãã¨ãã£ã¿ã¨ãã¦ããããã¯ç°å¢ã¨ãã¦å©ç¨ãã¦ããã¨æãã¾ãã®ã§ãæ®éã®Emacsã¦ã¼ã¶ã«ã¯ãã¾ãå¿ è¦ãªãããããã¾ããã ãã ãEmacs LispãCIã«ãããã¨ãã«ç価ãçºæ®ãã¾ããããã§ããEmacsã¯Emacs Lispã®å®è¡ç°å¢ã§ãããã ãªã®ã§Emacsã«ããã¼ã¸ã§ã³ããã¼ã¸ã£ãå¿ è¦ã«ãªãã¾ããããã§ããå¿ è¦ã§ãã evm https://github.com/rejeep/evm evmã¯f.elã§ãæåãªrejeepãããã¡ã³ããã³ã¹ããã¦ãã¾ãã 使ãæ¹ã¯ã evm install [version] ã§ãã¼ã¸ã§ã³ãæå®ãã¦ã¤ã³ã¹ãã¼ã«ãã evm use [version] ã§æå®ã®ãã¼ã¸ã§ã³ã®Emacsã使ã ã¨ãRVMã«ä¼¼ã¦ãã¾
é¸æç¯å²ããªã¹ãã«æå®ããæåã§ç½®æãã¾ãã è¤æ°è¡ãåè§ã¹ãã¼ã¹ä¸ã¤ããã¦1è¡ã«é£çµ é¸æ -> M-x my-join-multi-lines ããã°ç¨ã«ã¨ã¹ã±ã¼ã é¸æ -> M-x my-escape-region-for-blog-post å ¨è§æ°åãåè§æ°åã« é¸æ -> M-x my-convert-to-single-byte-number åè§æ°åãå ¨è§æ°åã« é¸æ -> M-x my-convert-to-multi-byte-number å¥èªç¹ãªã©ã®ç´ç©ãåè§ã« é¸æ -> M-x my-convert-yakumono-to-half-width (defun my-replace-strings-in-region-by-list ($list) "Replace strings in a region according to $list" (if mark-
ç®æ¬¡ recentf recent-ext èªåä¿å ã¨ã³ã¼ã¨ãªã¢ã«ç¡é§ãªè¡¨ç¤ºãåºããªã cleaning upããªã è¨å®ã¾ã¨ã recentf æè¿ä½¿ã£ããã¡ã¤ã«ã®ãªã¹ããä¿åãã¦ããæ©è½ãfind-fileã§éãããã¡ã¤ã«å±¥æ´ãä¿åãããããã©ã«ãã§å ¥ã£ã¦ããã®ã§è¨å®ã ãæ¸ãã°ä½¿ããã ã¿ã¼ããã«ããæ®éã«ãã¡ã¤ã«ãEmacsã§éãããããã£ã¬ã¯ããªãdiredã§éãããããå±¥æ´ã¯recentfã§ã¯ã¨ã£ã¦ãããªãã recentf-extãåããã¦ä½¿ãã¨ä¸è¨ãã¹ã¦ã®å±¥æ´ãä¿åãã¦ããããããã¯ããã±ã¼ã¸ãã¤ã³ã¹ãã¼ã«ããå¿ è¦ãã recent-ext ãããåè 人ã¯ä¿ºããrecentfãã¹ã¿ã¼ãã¨å¼ã¶ - http://rubikitch.com/ã«ç§»è»¢ãã¾ãã Emacsã®ããã±ã¼ã¸ç®¡çæ©è½ã使ã£ã¦ã¤ã³ã¹ãã¼ã«ããã ãã èªåä¿å å±¥æ´ã¯ããã©ã«ãã§ã¯~/.recentfã«ä¿åã
ã¯ããã« ãã®ã¨ã³ããªã§ã¯ã¹ã¯ã¬ã¤ãã³ã°ã«çµ¡ã㦠pcase ãç´¹ä»ãã¾ãã Emacs ã§å¤§è¦æ¨¡ãªã¯ãã¼ãªã³ã° & ã¹ã¯ã¬ã¤ãã³ã°ã¨ãã話ã§ã¯ãªãã調ã¹ãã®ã§ã¡ãã£ã¨ããè³æãã¾ã¨ããããããã¥ã¢ã« lookup çã®ã«ã¹ã¿ã ã¢ã¼ããä½ãæã« pcase ã§ã¹ã¯ã¬ã¤ãã³ã°ããã¨æ¥½ãããªã¼ã¨ããå¦ã³ããã£ãã®ã§ãããããã pcase ããã§ããã å¿ è¦ãªãã® libxml2 ããªã³ã¯ãã Emacs 24.x pcase å ¥é ãªã¹ããèµ°æ»ããã¨ãããåå¥ã©ããã«ãããã§ããã楽ãªã®ã«ããã£ã¦æãã¾ãããããã pcase ã§åºæ¥ã¾ãã EXP ã«ããããããã¿ã¼ã³ã CASES ã«æ¸ãã¾ããCASES 㯠(UPATTERN CODE...) ã®ãªã¹ãã§ãUPATTERN ã«ããããã㨠CODE... ãè©ä¾¡ããã¾ãã ã¾ãã¯åå¥ã©ããã«ããããããã¿ã¼ã³ãè¦ã¦ã¿ã¾ãã
æ¦è¦ Emacsã§ç»åãå¼ããã®ã楽ããã£ãã®ã§ãç¾äººæè¨ã§è»è¼ªã®åçºæããã¾ããã kiwanamiããã®è¨äºã§ã®ãã©ã°ã¤ã³ã¨ãã¦ç¾äººæè¨æ©è½ãç´¹ä»ããã¦ããã®ã§ããã wgetãImageMagickãããã°ã åºããªã£ãç»é¢ãæå¹å©ç¨ã§ãããEmacså Window管çãã¼ã« e2wm.el ãä½ã£ã¦ã¿ããï¼æ§å称 ewm.elï¼ - æè¡æ¥è¨ï¼ kiwanami ã¨æ¸ããã¦ããã®ã§ãå¤é¨ã³ãã³ãã使ããã«Elispã ãã§ä½ããã¨æãä½ã£ã¦ã¿ã¾ããã å°å ¥ ã³ãã³ã㧠M-x auto-install-from-url https://raw.githubusercontent.com/sanryuu/emacs-bijin-tokei/master/bijin-tokei.el è¨å®ãã¡ã¤ã«ã« (require 'bijin-tokei) 使ãæ¹ M-x bijin-tokei-st
http://mattn.kaoriya.net/software/vim/20160129114716.htm Emacsã socket使ãããã¨ã¯ç¥ã£ã¦ããã, 使ã£ããã¨ããªãã£ãã®ã§æ¸ãã¦ã¿ã¾ãã. ã³ã¼ã (require 'json) (let ((proc (open-network-stream "test" (get-buffer-create "*test*") "localhost" 8888))) (set-process-filter proc (lambda (proc output) (let ((resp (json-read-from-string output))) (message "ãã ä»: %s" (aref resp 1))))) (process-send-string proc (json-encode [1 "GET"])) (proce
æè¿è¿½å ãããæ©è½. header-lineã«ããã¿ã¼ã³ã表示ãã. è¦ç·ãåããéã¯æ¸ããããªã®ã§, 大ããªç»é¢ã使ã£ã¦ãã人ã«ã¯ãããããããªã (ç¾ç¶ ä¸ã«ãä¸ã«ãåºãã®ã§è¥å¹²å¤ã§ãã...) ã¤ã¡ã¼ã¸
ã¯ããã¾ãã¦ã ãã³ãã¡ ã¨ç³ãã¾ãã å¹¼å°æã¯èªéçå ã§éåé³ç´ãè¨èãæªçºéã§ããããããç»æ ¡æå¦ãçµé¨ã è¦æãªç§ç®ã¯ã¯ã¼ã¹ã2ã¯å½èªã¨ä½è²ã ã£ãã ããªã¼ã¹ã¯ã¼ã«ã転ã ã¨ãããåéã§ããã ããã§ããªããå°ããåä¾ã«ã ãã¯å¥½ããã¦ããã è±èªã¨çæ°ç³»ãå¾æã ã£ãã®ã§ããããæ´»ããã¦ä»ã®äººãéãã§ããéã«å¤§å¦åé¨ã®åå¼·ãããã åéãããªããã¨ã幸ããã¦å強漬ãã§å¤§å¦ã§ãæ績ããè¯ãã£ãã ãããä½æè½åãè²ã£ã¦ãªãã£ãã¨ããã§åè«ã¨ãã大ãã¹ãå¾ ã¡æ§ãã¦ããï¼ æ¦ã æã ã¨ããªããããã²ã¨ãã¼ã£ã¡ã§ç¬èªã®ç 究ããã¦æ¸ãä¸ãããã¨ãã§ããã é©ããã¨ã«åè«ã§ã¯è³ãããããã¨ãã§ãã大å¦é¢ã«é²å¦ãã¦ãããããªãASCIIããæ¬å·çã®ãªãã¡ã¼ãæ¥ãã 2001å¹´ã®å¦å¥³ä½ãRubyã256å使ãããã®æ¬ãééç·¨ãã®ãã¯ããã«ãã«ã俺ã¯æããä½æã大ã®è¦æã§ãã£ãããã¨æ£ç´ã«åç½ããã 1ã¶æ
ä»æ´æã¯ããããæè¿ãã¹ãé§åéçºæ¯æ´Emacs Lispã®test-case-mode.elãçºè¡¨ãããã http://nschum.de/src/emacs/test-case-mode/ M-x auto-install-batch test-case-mode ã§ã¤ã³ã¹ãã¼ã«ã ãããªæãã ãã¹ãæåã®ã°ãªã¼ã³ã失æã®ã¬ãããªã©ã®ä¿¡å·ãã¢ã¼ãã©ã¤ã³ã«è¡¨ç¤ºããã ãããã¡ãå¤æ´ããããä¿¡å·ã対å¿ãã¦å¤ãã ãã¹ããå®è¡ãã¦ã失æãããããã®è¡ã¸M-x next-errorã¨M-x previous-errorã§é£ã¹ã asserté¢æ°ç¾¤ã«è²ãã¤ã JUnit, CxxTest, CppUnit, Python(PyUnit), Ruby (test/unit)ã«å¯¾å¿ ãã¹ãã³ã¼ããèªåå¤å¥ãã¦ããã¹ãã³ã¼ããªãã°test-unit-modeãæå¹ã«ãã è¨å® 以ä¸ã®.emacsã«
æ©è½åä¸ã® elisp ã bug-gnu-emacs ML (ãã°ã¬ãã¼ããã¡ãã£ã¨ããæ¹åãæ©è½è¦æåã) ã«æãã¦ã¿ãã Minor Enhancement: Toggle narrowing/widen a function region and all http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=434 éå»ãã°ãæ¼ã£ã¦æé¢ãèãã¦ã¿ããã©ããªã«ãããããã OSS ã³ãã¥ããã£ã¸ã®æ稿ã¯åãã¦ãªã®ã§ãKY(空æ°èªããªã)ãªå¥´ã ã¨æããã¦ãããã©ããããã¨ã¡ãã£ã¨ä¸å®ãããã ã¨ãã¦ãç¡è¦ãããã ãã ãããã¾ããããï¼ããï¼ã æ¯è²ã¯ã¡ãã£ã¨éããã©ããã«ããï¼çç¥ï¼ããªãã®ãããã«å¯¾ãã¦ä½ã®ã³ã¡ã³ãããªãä¸æ¡ç¨ã«ãããã¨ã¯æ¥µãã¦æ®éã®ãã¨ã§ããããã¯èªç¶ãªå§¿ã§ãã(çç¥)ãã¨ãããã ã¨ã«ãããä»å¹´ã¯å°ã
While squashing Git commits isnât too difficult, with Magit, I donât want to use Git on the command line. However, manipulating the commit history in Emacs isnât as straight-forward as other Magit activities, so I thought I would share my notes. To explain this, I figure I need a story. While in Magit, hit the l (lowercase L) twice to bring up the log history summary: Notice the line the cursor is
å®è¡çµæãè¦ããåããããã«ãEmacsã®æ£è¦è¡¨ç¾ã¯å¤§éã®\ã«æ±æãã㦠ã¨ã¦ãè¦ãããã®ãããªãã ã¨ããã¨ã§ãrxã¨ããããè¨èªãã¯ããå©ç¨ãã¦Så¼ããæ£è¦è¡¨ç¾æååã«å¤æããã ;; æååãæå®ããã¨æååãã®ãã®ã«ãããããæ£è¦è¡¨ç¾ãä½æãã (rx "foo") ; => "foo" ;; ã¡ã¿æåã¯ã¨ã¹ã±ã¼ãããã (rx "foo+bar") ; => "foo\\+bar" ;; è¤æ°ã®å¼æ°ãæå®ããå ´åã¯ããã®ã¾ã¾çµåããã (rx "foo" "bar") ; => "foobar" (rx ?a) ; => "a" (rx not-newline) ; => "." ;; å ¨ã¦ã®æå (rx anything) ; => ".\\|\n" (rx (any "a-z")) ; => "[a-z]" (rx (in "a-z")) ; => "[a-z]" ;; [:
表é¡ã®éãï¼æ¬è¨äºã§ã¯region-bindings-modeãç´¹ä»ãããã¨æãï¼ ã³ã¼ãã¯ä»¥ä¸ã®ãã¼ã¸ããï¼ https://github.com/fgallina/region-bindings-mode MELPAãããã¤ã³ã¹ãã¼ã«å¯è½ã§ããï¼ ç¹å¾´ã»å©ç¹ ãªã¼ã¸ã§ã³ï¼æå¾ã«ãã¼ã¯ããç®æããç¾å¨ã®ã«ã¼ã½ã«ä½ç½®ã®éã§å²ã¾ããé åï¼ãæå¹ã«ããç¶æ ã§ã®ã¿ï¼region-bindings-modeã¨ãããã¤ãã¼ã¢ã¼ããçºåããï¼ãã®ãã¤ãã¼ã¢ã¼ãä¸ã§ã®ã¿æå¹ãªãã¼ãã¤ã³ããè¨å®ãããã¨ãå¯è½ãªããï¼æ¢åã®ãã¼ãã¤ã³ãã®è¨å®ãä¾µé£ããã«ããï¼ã¨ããå©ç¹ããã. åä½ç°å¢ ä½è ã«ããã¨Emacs24ã§ã®ã¿åä½ãã¹ããè¡ãªã£ã¦ãããããï¼çè ãEmacs24ãDebian GNU/Linuxä¸ã§ä½¿ç¨ãã¦ããã,åä½ã«åé¡ã¯ãªãã£ãï¼ ã¤ã³ã¹ãã¼ã« ä½è ãã¼ã¸ããï¼ (add-to-list '
ã¡ã¢ãããã§ãã init.elãç·¨éãã¦ããæã«æ§æãééãã¦ã¨ã©ã¼ãèµ·ããã¦ãã¾ãã¾ãã ããã§ãèªåã¯ã©ãã§ã¨ã©ã¼ãçºçãã¦ãããããã¡ãã¡æ°ãã追å ããæ§æãåé¤ãã¦ç¢ºèªãã¦ãã¾ããã init.elãçãæã¯ããã®ã§ãããæè¿ã§ã¯è¨å®ãé·ããªãããã¦ãã©ãã§ã¨ã©ã¼ãçºçãã¦ããã®ãè¦ã¤ãã«ãããªã£ã¦ãã¾ãããã ã§ãå 人ãã¡ã¯ã©ã®ããã«ãããã¯ããã¦ããã®ã調ã¹ã¦ã¿ããã»ã»ã»æ¸ãã¦ããã¾ããï¼ è¨è¿°ããè¨å®ã®ããã¹ããé¸æãã¦ãM-x eval-region ã¨ã©ã¼ç¯å²ãåºããã°ãé¸æç¯å²ãçãã¦M-x eval-regionã§çµãè¾¼ã ã¨ã©ã¼å 容ããä¿®æ£ãè¡ãã ç°¡åãªãã¨ã§ãããé常ã«ä¾¿å©ã§ãã 以ä¸ï¼
第äºå㯠@wataken44ããã§ãã. ãªãã¸ã㪠https://github.com/wataken44/dot.emacs.d2 cd(change directory)ãããªã let + default-directory https://github.com/wataken44/dot.emacs.d2/blob/master/init.el#L7 ãªãªã¸ãã« (progn (cd "~/.emacs.d/site-lisp/") (if (fboundp 'normal-top-level-add-subdirs-to-load-path) (normal-top-level-add-subdirs-to-load-path))) ;; ... (progn (cd "~")) æ¹æ£æ¡ letã使ããã¨ã§, å ã®ä½ç½®ã«æ»ãå¿ è¦ããªããªãã¾ã. letãæãã㨠å ã®ä½ç½®ã«
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}