The Qiita Advent Calendar 2019 is supported by the following companies, organizations, and services.
The Qiita Advent Calendar 2019 is supported by the following companies, organizations, and services.
最近JSを触っていて、このプロジェクトはインデントが2だけど、このプロジェクトはインデントが4で、プロジェクトごとに設定できないかなーという課題意識を持っていた。今まで全く知らなかったのだけど、これは.dir-local.elというのを利用すれば出来るようだった。 formatting - How to set project-specific javscript indentation using js2-mode - Emacs Stack Exchange EmacsWiki: Directory Variables 設定は単純で特定のプロジェクトのrootディレクトリに.dir-local.elというファイルを置くだけ。例えばあるプロジェクトではjs2-modeのインデントを2にしたいという時は、.dir-local.elに以下のように記述しておくだけでいい。 ((js-mode
init.el � ��U ;; タイトルパーにファイルのフルパスを表示する (setq frame-title-format "%f") ;; 行番号を表示する (global-linum-mode t) ;; カラム番号も表示する (column-number-mode t) ;; 空白文字を強制表示 (setq-default show-trailing-whitespace t) (set-face-background 'trailing-whitespace "#b14770") ;; 対応する括弧を表示 (show-paren-mode t) (setq show-paren-delay 0) ;; 行間 (setq-default line-spacing 0) ;; 全角スペースを強制表示する (require 'whitespace) (global-whitespa
メモ用なWiki Emacsのメモとか気になったことをメモしておく。 トップページページ一覧メンバー掲示板編集 Emacs インデント 最終更新: whiteflare503 2014年10月25日(土) 00:48:58履歴 Tweet インデントスタイル "c-set-style" で使えるスタイル “gnu”The default style for GNU projects“k&r”What Kernighan and Ritchie, the authors of C used in their book“bsd”What BSD developers use, aka “Allman style” after Eric Allman.“whitesmith”Popularized by the examples that came with Whitesmiths C, an
▼ [Emacs] 君は Emacs 24.1 で追加された新コマンド nato-region を知っているか? Emacs 24.4 の NEWS ファイルをつらつらと眺めていたら、nato-region なるものが 24.1 で追加されたと書いてある。 New command `nato-region' converts text to NATO phonetic alphabet. NATO phonetic alphabet って、なんじゃそれ?と思って試してみたら納得。例のアレだった。 例えば、こんな文字列を範囲選択して、M-x nato-region を実行すると、 abc 次のようになった。 Alfa-Bravo-Charlie 「アルファ、ブラボー、チャーリー」ってやつだね。こんなの何に使うんだ(笑)
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く