LoginSignup
23
8

More than 5 years have passed since last update.

週刊Emacs News 2016年11月21日

Last updated at Posted at 2016-11-21

emacs-tangentsメーリングリストにまとめられたEmacs界隈のニュースに@tadsanが雑にコメントつけつつ紹介していくよ ヾ(〃><)ノ゙☆

前回週刊Emacs News 2016年11月14日

リンクは主にreddit.com/r/emacs/r/orgmode/r/spacemacsHacker Newsplanet.emacsen.orgYoutubeEmacs NEWS fileの変更、emacs-develあたりから採られてるよ。

注意

この記事の出典: 2016-11-21 Emacs News

注釈が不要なひとはemacs-news Archives - sacha chua :: living an awesome lifeから読むと良いですよ。

ナビゲーション

Moving around faster in Emacs

「もっと行移動を速くしたいんだけど」みたいな相談。

紹介されてるのはace-jump-mode(るびきちさんによるace-jump-mode.elの紹介)、goto-last-changeanzu(作者@syohexさんによるanzu.elの紹介)、iy-go-to-charなど。

私はしばらく@ShingoFukuyamaさんのhelm-swoop(helm-swoopでEmacsを位置同期検索 - Web学び)が気に入ってるのと、iy-go-to-charが少し気になってますね。

How do I keep my buffers list clean?

「Emacsを使ってるとバッファ一覧が散らかってくるんだけどさ」みたいな相談。バッファ一覧はC-x C-b(M-x list-buffers)で視られるよ。

まあEmacs標準添付のmidnight.el(midnight.el で毎日 0 時に古いバッファを削除する)に付属してるclean-buffer-listをチェックしとけよと最初の意見。

IDOとかHelmみたいな補完フレームワークを使ってるなら最近使った順にバッファを並べられるので気にしなくなったって話。

あとはXah LeeたんのEmacs: Open Last Closed FileとかEmacs: Next/Previous User Bufferあたりを読んでおくと良いかも、といった紹介。

Org Mode

Improvements to lazyblorg: blogging with org-mode improved with easier setup and upgrade

blogging with Org-mode for very lazy peopleと題されたlazyblorgってブログエンジンを作ってるらしい。

Easier way to convert text to ordered list in org mode?

テキストの並びを順序付きリスト(1, 2, 3... と並んだ番号付きのリスト)にカンタンに変換するにはどうしたらいい? って質問。

C-c -(Control+c-を続けて押す)とか、S-(Shiftとカーソル右)を押すといいらしいよ、と最高の回答。しらなかった…

org-orderd-list-conversion.gif

using babel to put your init file in org

org-babelを使ってEmacsの初期化ファイル(~/.emacs.d/init.elまたは~/.emacs)を文芸的プログラミングスタイルで書きたいんだけど、どうするのがいいの? って相談。

I just received my custom org-mode stickers!! (Reddit)

org-modeのステッカー作ったぜーって話。

scientific paper management with orgmode; autotag,full text search, read out cross refs?

「科学論文とか管理するのにorg-mode最高じゃね? でも文献管理とかどうやってんの」(異常に雑な要約)

jkitchin/org-ref: org-mode modules for citations, cross-references, bibliographies in org-mode and useful bibtex tools to go with it.とか、Recollhelm-recollとか使ったらいいんじゃないの、みたいな話。 (私は人生で論文を書いた経験がないのでよくわからない)

Emacs Lisp

format-spec

format-spec 知らなかったけど、べんりっぽい…

(format-spec "%n %v %p %o."
             '((?o . "the fence")
               (?p . "over")
               (?v . "jumps")
               (?n . "A dog"))) ;=> "A dog jumps over the fence."

Read and write files in Emacs Lisp

Emacs Lispでファイルを読み書きする方法。私も似たような記事を書いた(ファイルを読み込む - Qiita)。

いまどきはf.elを使ってf-read-textとかf-write-textとか使っておくといいよ、って結論。

Debug a function in Emacs with Spacemacs (0:14)

SpacemacsでClojureのコードを書いてるっぽい動画。式の評価値をいい感じに表示してくれてて、かっこいい。 <!-- なんかインスピレーション湧いてきた -->

コーディング

Refactor clojure code like a champ! (16:43)

Clojureでいい感じにリファクタリングする動画。

emacs-flow-jsx: Emacs mode for Flow type annotations and React JSX syntax (Reddit)

JavaScriptのFlow(静的型チェッカー)形式のアノテーションを編集するためのメジャーモードっぽい。 (実装も読んでみたけど、よくわからなかった…)

Emacs compiling your js and CSS on save

JavaScriptとかCSSを保存したらコンパイルしたい! って話。……なんだけど、GruntとかGulpとか使っときゃいいだろと冷静なつっこみ。 (概ね同感)

configure whitespace mode to show only trailing whitespaces

行末に余分なホワイトスペースがあるときだけ表示したいお、みたいな相談。私はshow-trailing-whitespaceがすきです。

(setq-default show-trailing-whitespace t)

Using Emacs - 21 - web mode

最近のEmacsでHTMLテンプレートを編集するのに欠かせないweb-mode.elの紹介。動画付き。

Emacs本体開発

New option –new-daemon runs in foreground, doesn't fork

systemdフレンドリーな新しいEmacsサーバ(デーモン)? らしい?

New function file-local-name

リモートサーバーに接続中でも明示的にファイルのローカル名をとれる、らしい。たしかにこれがめんどくさくて、tramp-file-name-localnameとか使ってる。次期のEmacsではTRAMP的な機能が強化されてくのかなー。

New specifier for format-time-string: calendar quarter is %q

calendar quarter、つまり四半期のQ1とかQ3みたいな数字がとれるっぽい?

New input method cyrillic-tuvan

キリル文字表記のトゥバ語用の入力メソッドが追加されたらしい。やったね。ホーミーとかフーメイとか呼ばれる喉歌が超有名な言語ですな。

参考: トゥバ・喉歌について - Harmony Fields

Discussion about truncated backtraces and the ability to expand … at point

Emacsのバグ調査してるけど、バックトレースの変なところで短縮されてつらくてむかむかして困ってる… って話。(つらそう)

そのほか

Emacspeak 45.0 (IdealDog) Unleashed!

ふざけた文章っぽいんだけど、Emacspeakは視覚障碍者向けの本格的な聴覚ユーザーインターフェイスを持った環境らしい。作者のT. V. Ramanはアクセシビリティ研究を手がけるコンピュータ科学者としてWikipedia英語版に紹介がある。

Emacspeakのオンラインマニュアル

Using Emacs - 22 - emacsclient (Reddit)

Emacsをいちいち起動すると重いからemacsclientを使ったらいいよ、って話。動画。

Redditの方にはユーザー単位にsystemdで起動する設定例あり。

New (faster) test-build of Emacs 25.1 for Windows

Windowsのx64向けビルドが高速したぜやったー、って話。

GitHub - waymondo/apropospriate-theme: A colorful, low-contrast, light & dark theme set for Emacs with a fun name (Reddit)

新手のテーマ。コントラストひくめ。

TIP: Get all keys working in the Linux Console (Reddit)

Linuxのコンソール(仮想コンソール)で修飾キーの組み合せをフル活用するためのTips。

端末エミュレータとは別物。xtermとかGNOME端末とかKonsoleとか使ってるひとはまったく関係ない

GentooとかArchlinuxでXを起動せずに使ってるひとは関係あるかも。

Prevent Browser Processes Started by Emacs from Being Killed When Emacs Exits on GNU/Linux - Top Bug Net

デスクトップのGNU/Linuxで、「Emacsからbrowse-urlでブラウザを起動しちゃったら、Emacsを終了したときにブラウザも巻添くって終了する問題」を解決する。GNOME環境が前提。

Andrea Crotti Emacs and shell as your best friends (50:07)

EuroPython 2013でのセッションらしい。 Emacsとシェルは最高の友達

New packages

dashboard: A startup screen extracted from Spacemacs

Spacemacsみたいな感じで、起動時に直近開いたファイルとかプロジェクト一覧とかを表示してくれるやつだよ。

flycheck-scala-sbt: sbt-mode checker for Scala

sbt-modeに依存したFlycheckのチェッカー。

language-detection: Automatic language detection from code snippets

コードの断片からプログラミング言語を特定するやつ。アルゴリズム読んでぶっとんだ。defconst決定木持ってる。こんなのありかよ

org-babel-eval-in-repl: Eval org-mode babel code blocks in various REPLs.

org-bableからeval-in-replを利用できるやつ。

projectile-ripgrep: Run ripgrep with Projectile

検索が超速いと話題のripgrep(ripgrep - あのThe Silver Searcherを超えた超高速ファイル検索ユーティリティ)をProjectileに統合したやつ。

pygen: Python code generation using Elpy and Python-mode.

入力補完のような感じでPythonのクラスとか函数を生成できる。べんりっぽい。

region-convert: Convert string in region by Lisp function

選択範囲の文字列に任意のEmacs Lisp函数を適用できるようにしたやつ。標準機能にあっても良さそうなものだけど……。

demo-region-convert.gif

23
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
23
8