IMPORTANT NOTICE: Devheroes public code hosting will shut down at 1st of March 2023. Due to some difficulties, we have to shut down the instance. Since codeberg.org is pretty mature and welcoming, We highly recommend you to move your code there. Please be advised that on 1st of March, your data will be removed. Thanks for your time with us, and may the source be with you.

Browse Source

Fix the missing org-element bug

master
Sameer Rahmani 7 months ago
parent
commit
606f2e7a57
  1. 1
      build.el
  2. 2
      lisp/ox-template.el
  3. 4
      lisp/utils.el

1
build.el

@ -1,4 +1,5 @@ @@ -1,4 +1,5 @@
:;exec cask emacs --no-site-file --no-site-lisp --batch -L ./ -l "$0" -f main "$(cd "$(dirname "$0")/." >/dev/null 2>&1 ; pwd -P)" "$@"
;;; build.el --- The build script of my personal website
;;; Version: 0.1.0
;;; Package-Version 0.1.0

2
lisp/ox-template.el

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
;;; ox-template.el --- A HTML exporter via templates for org-mode
;; Copyright (C) 2021 Sameer Rahmani
;; Copyright (C) 2021-2022 Sameer Rahmani
;; Author: Sameer Rahmani <lxsameer@gnu.org>
;; URL: https://devheroes.codes/lxsameer/lxhome
;;

4
lisp/utils.el

@ -4,6 +4,8 @@ @@ -4,6 +4,8 @@
;;; Commentary:
;;; Code:
(require 'org-element)
(defmacro comment (&rest body)
"Ignore the given BODY."
nil)
@ -30,7 +32,7 @@ @@ -30,7 +32,7 @@
"Return the value of the given global PROP in the given org FILE."
(with-temp-buffer
(insert-file-contents file)
(message (get-buffer-global-props prop))))
(get-buffer-global-props prop)))
(comment

Loading…
Cancel
Save