Giter Club home page Giter Club logo

emacs_bgex's Introduction

Emacs-BGEX patch

X 用 (X なら Cygwin でも MacOSX でも動きます!) FSF Emacs の背景拡張非公式パッチです。

Emacs-BGEX patch を適用すると背景に画像や色を指定できるようになります。

フレーム単位ではなく、バッファごとに異なる背景を指定することもできます。

かれこれ 10 年以上メンテナンスしています。

Example

YouTube

example

Install

$ cd /tmp
$ wget http://umiushi.org/~wac/bgex/patch-bgex_VERSION.tar.xz
$ tar xf patch-bgex_VERSION.tar.xz

$ cp -av /tmp/patch-bgex_VERSION/bgex.el YOUR-ELISP-PATH/

$ cd YOUR-EMACS-SOURCE-PATH
$ cd src
$ patch < /tmp/patch-bgex_VERSION/patch-bgex_VERSION
$ cd ..
$ ./configure --prefix=YOUR-INSTALL-PATH && make -j15

Settings

;; Emacs-BGEX patch
(require 'bgex)


;; Image on frame
(when (boundp 'bgex-exist-p)
  (bgex-set-image-default "~/.emacs.d/images/background.xpm"))

;; Image on frame (dynamic color mode (SRC * DST / factor))
(bgex-set-image-default "~/.emacs.d/images/background.xpm" t)

;; Color for HTML-mode (dynamic color mode)
(bgex-set-color "HTML" 'bgex-identifier-type-major-mode '(60000 40000 40000) t)

;; Color for buffer-name (*scratch*)
(bgex-set-color "*scratch*" 'bgex-identifier-type-buffer-name "skyblue")

;; XPM string
(bgex-set-xpm-string "*scratch*" 'bgex-identifier-type-buffer-name "XPM string" t)
(bgex-set-xpm-string-default "XPM string" t)

Patches

HEAD

for macOS (simple version)

(set-background-color "#d0b8a0")
(set-frame-parameter nil 'bg-image-enable-flag t)
(set-frame-parameter nil 'bg-fill-alpha 0.6)
(set-frame-parameter nil 'bg-image-filename "IMAGE_PATH")

Emacs-26.1 / Emacs-26.2 / Emacs-26.3

Emacs-25.1 / 25.2 / 25.3

Emacs-24.5

Emacs-24.4

Emacs-24.3

Emacs-24.2

Emacs-24.1

Emacs-23.3a

Emacs-22.3

Emacs-21.4 / Emacs-21.3

Specification

Please see bgex_memo.txt (in Japanese).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.