Skip to content

Instantly share code, notes, and snippets.

@buzztaiki
Last active October 23, 2025 02:12
Show Gist options
  • Select an option

  • Save buzztaiki/3d74fbb813d11cd4cb14adecc2dd08b6 to your computer and use it in GitHub Desktop.

Select an option

Save buzztaiki/3d74fbb813d11cd4cb14adecc2dd08b6 to your computer and use it in GitHub Desktop.
2025年のXEmacs

2025年のXEmacs

完全に更新が止まったのかと思ってたけど、2024年あたりから開発が再開していた。

Install

% hg clone https://foss.heptapod.net/xemacs/xemacs
% cd xemacs
% aclocal && autoconf
% ./configure --prefix=$HOME/opt/xemacs --with-xft
% make && make install

--with-gtk はconfigure は成功してビルドに失敗する。

フォントを設定する

~/.Xresources に以下を書いてから

XEmacs.modeline.attributeFont: Monospace-18
XEmacs.default.attributeFont: Monospace-18

以下を実行する

% xrdb ~/.Xresources

パッケージをインストールする

XEmacs は素のままだと dired すらない。ので、package を別途入れる。昔ながらの xemacs-sumo は更新が止まっているぽいし、M-x pui-list-packages は インデックスが更新されてなくてインストール不能ぽいので、xemacs-packages を利用してインストールする。

% hg clone https://foss.heptapod.net/xemacs/xemacs-packages
% cd xemacs-packages
% make Local.rules
% vim Local.rules

Local.rules の差分

--- Local.rules.template	2025-09-12 05:48:37.646389846 +0900
+++ Local.rules	2025-09-12 06:18:44.125472784 +0900
@@ -12,7 +12,7 @@
 # maintainers.  See 'BUILD_WITH_SXEMACS' below.
 #
 # (Double-quote path under native MS Windows if there are embedded spaces.)
-XEMACS_BINARY = xemacs
+XEMACS_BINARY = ${HOME}/opt/xemacs/bin/xemacs

 # Are we running XEmacs 21.5 or greater?  If set, this will generate
 # custom-defines.el files for use with Custom (esp. the Custom menu), and
@@ -65,7 +65,7 @@
  # is installed -- normally /usr/local, and set using the `--prefix'
 # parameter to `configure'.  See the INSTALL file.

-XEMACS_INSTALLED_PACKAGES_ROOT = /usr/local/share/xemacs
+XEMACS_INSTALLED_PACKAGES_ROOT = ${HOME}/opt/xemacs/share/xemacs/
 # XEMACS_INSTALLED_PACKAGES_ROOT = /usr/local/lib/xemacs

 # If you are developing XEmacs, you probably don't want to install the

make install すると大分時間かかるし、一部のパッケージでインストール失敗するから、欲しいものだけ入れておくのが良さそう。

% for x in xemacs-packages/{xemacs-base,xemacs-devel,edit-utils,prog-modes,vc,tramp,net-utils,cc-mode,c-support,mine,games,misc-games}; do (cd $x && make && make install); done

スクショ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment