Shammer's Philosophy

My private adversaria

2013-03-01から1ヶ月間の記事一覧

declareとは

たまに人が書いたLispのコードを見ると、declare というのを使っている。CLHSの解説は以下だが A declare expression, sometimes called a declaration, can occur only at the beginning of the bodies of certain forms; that is, it may be preceded only…

Mac用 Emacs 設定

とりあえずはこんな感じ。 (setq inhibit-startup-screen t) ;;; Font Configurations ;;; If using Window-System, configure myfavoritefontset (when window-system (global-set-key [ns-drag-file] 'ns-find-file) (defvar fixed-width-use-QuickDraw-fo…

init.el の整理

あちこちで Emacs を使用していて、それぞれの環境用の定義を init.el に書いていたら煩雑になってきたので、環境ごとに定義ファイルを分けて、それぞれの環境ごとに用意されたファイルをロードする、というように書き換えてみた。まず、init.el にはこんな…

/Applications/Emacs 以下に SKK をインストール

何度も同じようなことを書いているのが気になるが、再度、「あれどうやるんだっけ?」となるのがイヤなのでメモ。 半年とか一年後の自分が見ても迷うことがないように(そう考えても抜けが多い)。 GUI版 Emacs をダウンロードし、/Applications へコピー。 …

GUI版 Emacs インストール

GUI版のMacをインストール。サイトはお馴染みのGNU Emacs For Mac OS Xから実行。port からインストールした場合には存在しなかった、ns-*** という関数の存在を確認してみた。GUI 版の Emacs を起動して試した結果が以下。 (fboundp 'ns-get-pasteboard) t …

Emacs 24.3 で killring と OS のクリップボード分離

以前に導入したEmacsWiki: Copy And PasteのEmacsのkillringとOSのクリップボードを分離する機能が動作しなくなってしまったので対応を考えた。具体的には symbol's function definition is void ns-get-pasteboard symbol's function definition is void ns…

Mac OS Lion へ Emacs 24.3 をインストール

24.1を使っていたが、Terminal上で使用した際に OpenStep is not in use or not initializedというメッセージが出ることに気付いた。ファンクションキーのキーバインドがこのエラーでまともに動作しなかった。原因について調べていたが、24.0.50でこのエラー…

MacのEmacsフォントの補足

前にMac上のEmacsでInconsolataを使用できるように設定したけれども、その設定でTerminal内でEmacsを起動するとエラーになることがわかった。 なので、フォントの設定を少し変更した。 (when window-system (create-fontset-from-ascii-font "Inconsolata-12…

DebianにEmacs24.2をインストール

参考サイトは以下。 Compiling Emacs on Debian Roy's musings: Installing Emacs 24.1 libjpeg-devのスペルが違う点以外はほぼ問題なかった。 apt-get install ttf-inconsolata apt-get install build-essential apt-get install xorg-dev apt-get install …

FTP簡易接続設定

以下のようなテキストファイル(仮にftpconnect.ftpとする)を作成し、 open 192.168.1.15 %USER_NAME% %PASSWORD%コマンドプロンプトで ftp -s:ftpconnect.ftpとやると簡単に接続できる。念のためメモ。なお、192.168.1.15は接続先のFTPサーバー、%USER_NAM…