adding support for supercards; the neb.x supercards will be now recognized by QE-modes

git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12698 c92efa57-630b-4861-b058-cf58834340f0
This commit is contained in:
kokalj 2016-08-09 16:18:46 +00:00
parent 62336fc42d
commit d2477f9ae8
2 changed files with 10 additions and 3 deletions

View File

@ -6,7 +6,7 @@ LATEX = pdflatex
ELISP_FILES = *.el *.elc
# automatic ...
ALL_DEF_FILES = $(shell find $(TOPDIR) | grep INPUT_ | egrep def$)
ALL_DEF_FILES = $(shell find $(TOPDIR) | grep INPUT_ | egrep def$$)
## ... manual (i.e. perhaps more secure, as to have some control)
#ALL_DEF_FILES = \
@ -46,7 +46,7 @@ compile = cd qe-modes; emacs --batch --eval "(add-to-list 'load-path \".\")"
all: modes doc
modes: make-modes make-master
make-modes: qe pw ph pp ld1 cp
make-modes: qe pw neb ph pp ld1 cp
# generate specific modes ...
@ -55,6 +55,10 @@ pw: qe-funcs
$(generate) pw
$(compile) --eval "(byte-compile-file \"pw-mode.el\")"
neb: qe-funcs
$(generate) $(TOPDIR)/NEB/Doc/INPUT_NEB.def $(TOPDIR)/PW/Doc/INPUT_PW.def
$(compile) --eval "(byte-compile-file \"neb-mode.el\")"
ph: qe-funcs
$(generate) ph
$(compile) --eval "(byte-compile-file \"ph-mode.el\")"
@ -98,7 +102,7 @@ clean:
- cd Doc; $(MAKE) clean
veryclean: clean
- rm *~ */*~
- rm *~ */*~ */*.bak
- rm -rf qe-modes
- rm -rf QE-modes-$(VERSION)
- rm *.tar

View File

@ -28,6 +28,9 @@
(add-to-list 'auto-mode-alist
'("\\(pw\\|n?scf\\|\\(?:vc-\\)?\\(?:md\\|relax\\)\\).*\\.in\\'" . pw-mode))
;; automatically open the neb*.in files with neb.x mode
(add-to-list 'auto-mode-alist '("neb.*\\.in\\'" . neb-mode))
;; automatically open the cp*.in files with cp.x mode
(add-to-list 'auto-mode-alist '("cp.*\\.in\\'" . ph-mode))