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-from-shell-check-startup-files nil))
Recently exec-path-from-shell warn if environment variable in interactive mode is different from them in non-interactive mode. I suppose this is right. We should set environment variables in .bash_profile
or .zshenv
, not .bashrc
, .zshrc
. However this is not easy for some configurations such as rbenv. rbenv initialization eval 'rbenv init -'
generates some environment variables setting and function definitions. We should not define functions in .bash_profile
, .zsh_profile
so I think such setting should not be moved. And I want to keep shell configuration in only one file :-)
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
https://github.com/emacs-jp/replace-colorthemes
Installation
All themes are available on MELPA and MELPA stable
You can install color-theme-modern with the following command.
M-x package-install color-theme-modern
Enjoy Emacs themes.
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-python-mode t))
If you don't like default coffee-mode indent-command, please try this. And I suppose this is useful for Evil users. o
and O
commands works well as you expect with this indentation mode.
migemo対応の helm sourceを書く(helm-migemo不要)
昔 helmは migemo対応していたのですが(anything時代から), それが除去され, migemo機能を有効にする helm-migemoというパッケージが作成されさました. しかし最近 helmが再度 migemo対応しました. これにより helmだけで migemo対応の sourceが書けるようになりました. その手順を示します(作者の方が主導的に行われたので再度外される可能性はないとはいえませんが, 高くはないと思います).
バージョン
1.7.9以上を使う必要があります.
事前準備
migemoの設定を行い(以下は cmigemo), helm-modeを有効にします. (NOTE helm-migemo-modeは autoloadできないので, 事前に helmをロードしています)
(require 'migemo) (setq migemo-command "migemo") (setq migemo-options '("-q" "--emacs")) ;; Set your installed path (setq migemo-dictionary (expand-file-name "/usr/local/share/migemo/utf-8/migemo-dict")) (setq migemo-user-dictionary nil) (setq migemo-regex-dictionary nil) (setq migemo-coding-system 'utf-8-unix) (migemo-init) (require 'helm) (helm-migemo-mode +1)
サンプル
source作成マクロで migemo
属性を non-nilに設定します.
(defvar sample-source (helm-build-sync-source "Sample helm-migemo" :candidates '("りんご" "みかん" "メロン") :action 'message :migemo t)) (defun sample-helm-migemo () (interactive) (helm :sources '(sample-source) :buffer "*helm-sample*"))
イメージ
上記の実行結果(M-x sample-helm-migemo)は以下のようになります.
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 report me if you have issues or suggestions via github issues
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 github issues, I'll try to implement/fix as possible.
Repository
https://github.com/syohex/emacs-hcl-mode
Installation
You can install hcl-mode from MELPA with package.el.
Screenshot