|
|
| |
<P> | <P> |
All resources and configuration files are looked in the following paths: | All resources and configuration files are looked in the following paths: |
<TT>`/usr/share/qe:/usr/local/share/qe:/usr/lib/qe:/usr/local/lib/qe:~/.qe'</TT> |
<TT>`/usr/share/qemacs:/usr/local/share/qemacs:/usr/lib/qemacs:/usr/local/lib/qemacs:~/.qemacs'</TT> |
| |
| |
| |
|
Lines 390-396
All resources and configuration files ar
|
Link Here
|
|---|
|
<H2><A NAME="SEC16" HREF="qe-doc.html#TOC16">4.2 Configuration file</A></H2> | <H2><A NAME="SEC16" HREF="qe-doc.html#TOC16">4.2 Configuration file</A></H2> |
| |
<P> | <P> |
QEmacs tries to load a configuration file in <TT>`~/.qe/config'</TT>. Each |
QEmacs tries to load a configuration file in <TT>`~/.qemacs/config'</TT>. Each |
line of the configuration file is a QEmacs command with a C like syntax | line of the configuration file is a QEmacs command with a C like syntax |
('-' in command name can be replaced by '_'). | ('-' in command name can be replaced by '_'). |
| |
|
Lines 6250-6262
void qe_init(void *opaque)
|
Link Here
|
|---|
|
| |
/* compute resources path */ | /* compute resources path */ |
strcpy(qe_state.res_path, | strcpy(qe_state.res_path, |
CONFIG_QE_PREFIX "/share/qe:" CONFIG_QE_PREFIX "/lib/qe:" |
CONFIG_QE_PREFIX "/share/qemacs:" CONFIG_QE_PREFIX "/lib/qemacs:" |
"/usr/share/qe:/usr/lib/qe"); |
"/usr/share/qemacs:/usr/lib/qemacs"); |
home_path = getenv("HOME"); | home_path = getenv("HOME"); |
if (home_path) { | if (home_path) { |
pstrcat(qe_state.res_path, sizeof(qe_state.res_path), ":"); | pstrcat(qe_state.res_path, sizeof(qe_state.res_path), ":"); |
pstrcat(qe_state.res_path, sizeof(qe_state.res_path), home_path); | pstrcat(qe_state.res_path, sizeof(qe_state.res_path), home_path); |
pstrcat(qe_state.res_path, sizeof(qe_state.res_path), "/.qe"); |
pstrcat(qe_state.res_path, sizeof(qe_state.res_path), "/.qemacs"); |
} | } |
qe_state.macro_key_index = -1; /* no macro executing */ | qe_state.macro_key_index = -1; /* no macro executing */ |
qe_state.ungot_key = -1; /* no unget key */ | qe_state.ungot_key = -1; /* no unget key */ |
|
|
// Sample qemacs config file | // Sample qemacs config file |
// | // |
// copy it in ~/.qe/config |
// copy it in ~/.qemacs/config |
// | // |
// You can call any Qemacs command with a C like syntax. | // You can call any Qemacs command with a C like syntax. |
// | // |
|
|
ln -sf qemacs $(DESTDIR)$(prefix)/bin/ffplay | ln -sf qemacs $(DESTDIR)$(prefix)/bin/ffplay |
endif | endif |
mkdir -p $(DESTDIR)$(prefix)/share/qemacs | mkdir -p $(DESTDIR)$(prefix)/share/qemacs |
install -m644 kmaps ligatures $(DESTDIR)$(prefix)/share/qe |
install -m644 kmaps ligatures $(DESTDIR)$(prefix)/share/qemacs |
mkdir -p $(DESTDIR)$(prefix)/share/man/man1 | mkdir -p $(DESTDIR)$(prefix)/share/man/man1 |
install -m644 qe.1 $(DESTDIR)$(prefix)/share/man/man1/qemacs.1 | install -m644 qe.1 $(DESTDIR)$(prefix)/share/man/man1/qemacs.1 |
install -m 755 -s html2png $(DESTDIR)$(prefix)/bin | install -m 755 -s html2png $(DESTDIR)$(prefix)/bin |
|
|
| |
INCLUDES=-I$(QEMACS_PATH) | INCLUDES=-I$(QEMACS_PATH) |
DEFINES=-DQE_MODULE | DEFINES=-DQE_MODULE |
DIST_LIB:=$(HOME)/.qe/$(LIB) |
DIST_LIB:=$(HOME)/.qemacs/$(LIB) |
CC=gcc | CC=gcc |
CFLAGS=-O2 -Wall -g -fPIC $(INCLUDES) $(DEFINES) | CFLAGS=-O2 -Wall -g -fPIC $(INCLUDES) $(DEFINES) |
| |
# by default, the plugin is copied in ~/.qe/ some that qemacs can load |
# by default, the plugin is copied in ~/.qemacs/ some that qemacs can load |
# it automatically. | # it automatically. |
all: $(LIB) | all: $(LIB) |
| |