by shigemk2

当面は技術的なことしか書かない

2013-08-30から1日間の記事一覧

アンパック代入

タプル リストの要素に一度に値を代入すること python >>> nudge = 1 >>> wink = 2 >>> A, B = nudge, wink >>> A, B (1, 2) >>> [C, D] = [nudge, wink] >>> C, D (1, 2)

downcase-region と C-x C-l

意味なくdowncase-regionをやりたくって、 C-x C-lをやると、以下のようなメッセージが出る。 You have typed C-x C-l, invoking disabled command downcase-region. It is disabled because new users often find it confusing. Here's the first part of i…

git add -iとかで色付け

Git

Enabling colors in git command-line interface | Faizan Shaharyar以下を実行。 git config color.ui true

git commit時にエディタを立ち上げる

とりあえず.gitconfigにこのように書いてみる。 [core] editor = /Applications/Emacs.app/Contents/MacOS/bin/emacsclient単に [core] editor = emacsだと、ターミナルでエディタが立ち上がるだけだし、 [core] editor = open /Applications/Emacs.appだと…