Skip to content

Latest commit

 

History

History
174 lines (130 loc) · 6.24 KB

windows-init.org

File metadata and controls

174 lines (130 loc) · 6.24 KB

Windows Configuration

はじめに

Emacs の素晴らしいところは, Linux でも Windows でも, 同じ Emacs の世界ですごせるところにある.

バイナリ取得

Official

Official.

公式リポジトリは 64bit がおいてない.

UnOfficial

NTEmacs: Windows 用にビルドした GNU Emacs の通称. 日本人がメンテナンスしている.

gnupack: Cygwin 用.

emacs-w64: git リポジトリの latest snapshot から絶えずビルドしているバイナリ. おそらくこれがもっとも最新の開発版.

結論

IME パッチがあたった NTEmacs をつかうのが良い。 そうしないと、Google 日本語入力がインライン表示できない。    - Windows ユーザーで Emacs を導入したい初心者ユーザーのための情報まとめ | Gabekore Garage

ツールの取得

  • C:/app にツールはおくことにする.
  • Program file にはなるべくおかない
  • cygwin の環境変数にパスを通す.

Chocolatey

パッケージ管理にはなるべく chocolatey を利用しよう.

画像

Official に情報あり

F1 + v + dynamic-library-alist で必要な dll をしらべる

Value: ((xpm "libxpm.dll" "xpm4.dll" "libXpm-nox4.dll")
 (png "libpng14-14.dll" "libpng14.dll")
 (jpeg "jpeg62.dll" "libjpeg.dll" "jpeg-62.dll" "jpeg.dll")
 (tiff "libtiff3.dll" "libtiff.dll")
 (gif "giflib4.dll" "libungif4.dll" "libungif.dll")
 (svg "librsvg-2-2.dll")
 (gdk-pixbuf "libgdk_pixbuf-2.0-0.dll")
 (glib "libglib-2.0-0.dll")
 (gobject "libgobject-2.0-0.dll")
 (gnutls "libgnutls-28.dll" "libgnutls-26.dll")
 (libxml2 "libxml2-2.dll" "libxml2.dll"))

.dll が必要. 以下のサイトから入手.

  • zlib_xxx.zip
  • libpng_xxx.zip (PNG 用 , w32 でないとうごかなかった)
  • jpeg_xxx.zip ( JPEG, ver8 ではなく, 6 であるところに注意)

解凍後, bin 配下にある dll を Emacs.exe と同じ bin フォルダに置く.

PDF

docview-mode. need ghostscript

(setq doc-view-ghostscript-program "C:/Program Files/gs/gs9.14/bin/gswin64c.exe")

cmigemo

auto-compression-mode: gzip

eww では, auto-compression-mode によって, gzip が必要なようだ.

以下から windows 用のバイナリが手に入る.

(load-path “c:/app/ess”)

aspell/ispell

(add-to-list 'exec-path "C:/Program Files (x86)/Aspell/bin/")

Trouble about Windows

magit

(add-to-list 'exec-path "C:/Program Files/Git/bin/")
(setq magit-git-executable "C:/Program Files/Git/bin/git.exe")

変更していないのに変更したように見える.

old mode 100755 new mode 100644

これは, 権限が変更されたから. 権限の変更は管理しないようにする.

git config core.filemode false

Tips

init ファイルの設定方法

ショートカットから外部のアプリケーションを起動

(defun w32-browser 
  (doc) 
  (w32-shell-execute 1 doc))

(eval-after-load "dired" 
  '(define-key dired-mode-map [f6] 
     (lambda () 
       (interactive) 
       (w32-browser (dired-replace-in-string "/" "\\" (dired-get-filename))))))

speedup

(setq w32-get-true-file-attributes nil)

ビープ音を抑制

(setq visible-bell t)
(setq ring-bell-function 'ignore)

windows caps lock を ctlrl へ

caps2ctrl.exe をつかう.

Bookmarks