renard / o-blog

Standalone orgmode blog exporter. DEPECATED, NOT MAINTAINED
http://renard.github.com/o-blog-v2
260 stars 58 forks source link

workaround for strange o-blog load issues #126

Closed jave closed 9 years ago

jave commented 10 years ago

This works for me.

This works for me, exporting my site from a fresh emacs: http://www.verona.se

I dont really get why this workaround helps, since the o-blog code looks okay.

Anyhow, just thought this might help someone.

jave commented 10 years ago

Lately Ive not been using the above workaround, but instead this makefile:

makefile for o-blog

License

This program is free software; you can redistribute it and/or modify

it under the terms of the GNU General Public License as published by

the Free Software Foundation; either version 3, or (at your option)

any later version.

This program is distributed in the hope that it will be useful,

but WITHOUT ANY WARRANTY; without even the implied warranty of

MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the

GNU General Public License for more details.

You should have received a copy of the GNU General Public License

along with this program; see the file COPYING. If not, write to

the Free Software Foundation, Inc., 51 Franklin Street, Fifth

Floor, Boston, MA 02110-1301, USA.

Emacs invocation

EMACS_COMMAND := emacs

EMACS := $(EMACS_COMMAND) -Q -batch

EVAL := $(EMACS) --eval

PKGDIR := .

Additional emacs loadpath

LOADPATH := -L . -L /home/joakim/.emacs.d/elpa/markdown-mode-20140914.1012

Files to compile

EL := $(wildcard o-blog*.el)

Compiled files

ELC := $(EL:.el=.elc)

.PHONY: clean autoloads batch-compile

all: clean autoloads batch-compile

$(ELC): %.elc: %.el $(EMACS) $(LOADPATH) -f batch-byte-compile $<

Compile needed files

compile: $(ELC)

Compile all files at once

batch-compile: $(EMACS) $(LOADPATH) -f batch-byte-compile $(EL)

Remove all generated files

clean: rm -f $(ELC)

Make autoloads file

autoloads: $(EVAL) "(let ((generated-autoload-file (expand-file-name \"o-blog-autoloads.el\" \"$(PKGDIR)\")) \ (backup-inhibited t)) (update-directory-autoloads \"$(PKGDIR)\"))"

jave commented 10 years ago

the makefile is mostly copy pasted from Helm. the el-get install method ought to do basically the same thing so im not sure why there would be a difference.

renard commented 9 years ago

Is this still a need for you?

jave commented 9 years ago

no longer needed!