emacs

company-cmakeで大文字, 小文字を考慮した補完をする

company-cmake(標準)でディレクティブ(関数, キーワード等)を補完すると全部小文字になる. カーソル前の文字列(prefix)が大文字だろうと小文字に変換されてしまう. プロジェクトによっては大文字でディレクティブが書かれていることがあり, 補完後わざわざ u…

Patch for building Emacs on Ubuntu 16.10

I upgraded my server Ubuntu from 16.04 to 16.10. Then I couldn't build Emacs. I got following error at make Dumping under the name emacs Makefile:736: recipe for target 'bootstrap-emacs' failed make[1]: *** [bootstrap-emacs] Segmentation f…

MELPAコミッタになりました

パッケージのレビューをしまくり, そのパッケージに PRをしまくっていたら,コミット権限をいただきました.(個人的には el-getユーザで MELPAをテスト向けのパッケージぐらいにしか使っていないのですが...). パッケージを MELPAで登録したいけどよくわからな…

libpcre binding of Emacs Lisp

I'm writing libpcre binding of Emacs Lisp. Most of programmers is not familiar with Emacs Lisp regular expression because regular expression function or library of many languages has compatibility of Perl regular expression. I suppose such…

Get key binding from command

Sometimes I want to get key bindings of command for implementing like following command. Please see mini-buffer. (where-is-internal func &optional map ...) where-is-internal returns list of keys of command(func) from map. For example (wher…

visible-bellの画像を差し替える

Emacs 25から Macの visible-bellが画像を表示するようになったのでデフォルトの画像から差し替えてみた. パッチ Emacs25.1-RC1に対するパッチです. diff --git a/src/nsterm.m b/src/nsterm.m index e6a10b8..9a54886 100644 --- a/src/nsterm.m +++ b/src/…

Show current timer task in header line

(require 'org) (require 'org-timer) (require 'cl-lib) (defvar my/org-timer-current-task nil) (defun my/org-timer-start-hook () (setq my/org-timer-current-task (nth 4 (org-heading-components))) (cl-loop for buf in (buffer-list) unless (stri…

quickrun supports gnuplot

github.com quickrun.el supports Gnuplot file. You can see output of plot as image in other buffer. NOTE: This mode is supported only for GUI Emacs. Please report me if you have any problems or suggestions.

inline image in markdown-mode

github.com I have implemented inline image feature in markdown-mode. You can see image file in buffer by M-x markdown-toggle-inline-images command. This command is bound to C-c C-i C-t by default. You cannot use this feature in no GUI Emac…

Emacs Lispで socketプログラミング

http://mattn.kaoriya.net/software/vim/20160129114716.htm Emacsが socket使えることは知っていたが, 使ったことがなかったので書いてみました. コード (require 'json) (let ((proc (open-network-stream "test" (get-buffer-create "*test*") "localhost…

ejectで学ぶ Dynamic module機能

Dynamic module機能は 2015年 12月 12日現在開発中の機能です(だいぶ落ち着いてはきていますが). なので以下の内容は最新版では正しくない可能性があります. 動かない場合等はソースコード及び modules以下に含まれるテストコードを確認してみてください. リ…

Suppress warning of exec-path-from-shell

Sorry I removed old entry about this thing by mistake. This entry is updated version of it. Add following configuration in your init.el. Then exec-path-from-shell does not warn about environment variables. (custom-set-variables '(exec-path…

color-theme-modern

I ported all color-theme themes(over 100 themes) to Emacs theme framework 2 years ago. Now those themes are available on MELPA. You can download themes with package.el. Package name is color-theme-modern. Repository All sreenshots are here…

Indent like python-mode in coffee-mode

https://github.com/defunkt/coffee-mode/pull/323 I have implemented indentation like python-mode in coffee-mode. You can enable this feature by setting coffee-indent-like-python-mode to non-nil. (custom-set-variables '(coffee-indent-like-py…

Delete line in edit mode

I have implemented delete line feature in helm-ag edit mode. We can put delete line mark by C-c C-d, and remove delete mark by C-c C-u by default. Marking some lines and commit(C-c C-c by default), then these lines are deleted. Please repo…

hcl-mode 0.01 released

hcl-mode 0.01 is out. hcl-mode provides major mode of HCL(Hashicorp Configuration Language). Currently hcl-mode provide indentation, highlighting, some cursor moving commands. If you have any issues or suggestions, please report me via git…

helm-do-ag supports command line options

We can input command line options at helm-do-ag as following Gif animation. If you want to use pattern which starts with -, please use -- separator.

Emacs daemon memo

Run named daemon Emacs --daemon command line option can accept name argument(like --daemon=server1). % emacs --daemon=vim -Q % emacs --daemon=atom -Q Sending S-expression via emacsclient And we can specify server by -s(--socket-name) optio…

ac-emoji for Linux users

We can use emoji fonts other than MacOSX platform. (However MacOSX fonts is good looking :-() Installing Symbola font http://zhm.github.io/symbola/ Download Symbola.ttf and put it into fonts directory such as ~/.fonts. % cd ~/.fonts % curl…

auto-complete source for Rust

Repository https://github.com/syohex/emacs-ac-racer How to use Install rust(https://www.rust-lang.org/install.html) Install racer(https://github.com/phildawes/racer) (defun my/racer-mode-hook () (ac-racer-setup)) (add-hook 'racer-mode-hook…

ac-emoji supports displaying description

ac-emoji registered MELPA ac-emoji registered MELPA. You can download ac-emoji by package.el now.

auto-complete source for Emoji

I uploaded ac-emoji to github. This package provides auto-complete source of Emoji. Image Repository https://github.com/syohex/emacs-ac-emoji I test only MacOSX. Sample configuration I think this package is useful for writing Markdown or g…

auto-complete for Elixir programming

I recommend you to use company-mode for auto completion of Elixir programming. I created ac-alchemist which is auto-complete source of alchemist. Because alchemist provides only company-mode completion. alchemist often changes its API freq…

evil-textobj-line

evil-textobj-line is Emacs port of @kana1's vim-textobj-line. evil-text-obj-line provides functions which select portion of current line. Repository https://github.com/syohex/evil-textobj-line Demo a line("val") a-line selects whole curren…

Implement my own simple helm-find-files

helm-find-files is useful command for opening files in current directory. However I have some complaints for it. - I want to see only files, not directories(., .. etc). - I don't want to open binary files - I use only some actions(open fil…

minibufferのフォントを大きくする

例1 minibufferにフォーカスが移ったときに一時的に大きくするようにする. (add-hook 'minibuffer-setup-hook 'my-minibuffer-setup) (defun my-minibuffer-setup () (setq-local face-remapping-alist '((default :height 2.0)))) イメージ 例2 minibuffer-…

git-gutter.el supports live update experimentally

保存時等しか差分更新できないのはいけていないという意見をいただいたので, 保存しなくても差分情報を更新する機能を試験的に実装しました. (本家 Sublime Text版や Vim版ではだいぶ前に実装されている機能です) イメージ 設定例 git-gutter:update-interva…

Support highlighting match groups

Replace commands of anzu works like re-builder or visual-regexp now. Screenshot

jsonの validation

emacsでjson編集したら保存時にvalidかどうかチェックしてくれるようなのないかな? あるよなきっと2015-03-03 11:02:19 via YoruFukurou flycheck 保存時ではありませんが, 常時チェックしたい場合は flycheckがよいでしょう. jsonlintを事前にインストール…

ちょっとした計算結果を挿入する

Vim に惚れるシーン(エディタ内で ちょっとした計算をする) - Qiita 'M-:' eval-expressionをプレフィックス(C-u, M-1等)をつけて実行すると その評価結果がその場に挿入されます. イメージ