View | Details | Raw Unified
Collapse All | Expand All

(-) qemacs-0.3.1/plugin-example/Makefile (-9 / +9 lines)
 Lines 382-388   C-x C-d : dired Link Here 
<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 */
 Lines 1-6    Link Here 
// 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.
//
//
 Lines 189-195   ifdef CONFIG_FFMPEG Link Here 
	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
 Lines 14-24   OBJS=my_plugin.o Link Here 
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)