summaryrefslogtreecommitdiff
path: root/org-conf.el
AgeCommit message (Collapse)Author
2023-08-31org: move account loading to the right placeJSDurand
The file "account.el" appends to the `org-agenda-custom-commands` and org-capture-templates, whereas the codes in "org-conf.el" sets the above two variables, so the file "account.el" needs to be loaded after the variables are set.
2023-08-23org: ox-texinfo and accountJSDurand
* org-conf.el: Require ox-texinfo, and delete the parts about accounts. Those configurations are outdated now, and the new configurations are now in the new file "account.el". * account.el: Configurations for capturing and reviewing account information.
2023-06-15org: use new syntax for org-capture-templatesJSDurand
* org-conf.el (org-capture-templates): Use the form '(function org-determine-link-file)' instead of #'org-determine-link-file alone.
2022-09-03org: exclude "11bus-en" from the sitemap.JSDurand
* org-conf.el (durand-org-publish-sitemap, durand-org-publish-sitemap-format): The article 11bus-en is an English version of the article 11bus, so the sitemap should not list the conceptually equivalent article more than once. This requires the sitemap generation to skip that article, and to delete some redundant separation markers left behind. The latter is necessary since the sitemap generator still genetates separtors for empty entries, and would mess up the format otherwise.
2022-08-30org: modify mathjax templateJSDurand
* org-conf.el (org-html-mathjax-template): The original template does not conform to XHTML strict 1.0, so I modify it to fit in the specification. Specifically, I added the type attribute to a script element.
2022-08-30org: fix dateJSDurand
* org-conf.el (durand-org-postamble): Previously I always use the date and time at the moment of exporting the document as the document's creation time. While technically correct, this is not what the reader wants to know. So I figured out how to obtain the correct date and time information in the postamble function.
2022-08-30org: Modify the published html againJSDurand
* org-conf.el (durand-org-postamble, durand-org-publish-html-advice): Previously I used a new postamble, which caused one previous function to fail to find a certain date information. Now the new postamble uses the expected words to serve as an anchor. In addition, Org adds an attribute "role=\"doc-toc\"" to the table of contents, but this attribute is not allowed for div elements in XHTML 1.0 strict. So I remove that attribute now.
2022-08-30org: add a custom postambleJSDurand
* org-conf.el (durand-org-postamble, org-publish-project-alist): Use a custom function to generate the postamble. This enables me to insert a copyleft claim, and to customize the date / time format a little.
2022-08-30org: my blogs are now XHTML 1.0 Strict!JSDurand
* org-conf.el (durand-org-post-process, durand-org-publish-html-advice): After replacing each "<style>" with "<style type=\"text/css\">" I can finally say that my blogs all conform to XHTML 1.0 Strict now, as can be seen by following the "validate" buttons on the blogs. Quite happy. :D
2022-03-23org: refine the blog publishing functionsJSDurand
* org-conf.el (durand-org-publish-sitemap): Add a heading so that the generated HTML will be displayed correctly. I don't why this makes a difference, but in my browser it behaves this way. (durand-org-post-process): Refine a wording in a comment.
2021-12-10org-conf: add a commentJSDurand
Mac OS has a keyboard short cut for H-a, and I don't know how to disable that!
2021-12-09eww-conf: record the readability status as wellJSDurand
* eww-conf.el (durand-eww-readable-p): a variable that records if the current buffer is in the readable mode. (eww-non-readable-h, eww-readable-h): set the buffer to the correct readable mode. (eww-after-render-hook): add a hook to set the buffer to non-readable mode. (#'eww-readable): add an advice to set the buffer to readable mode. (durand-eww-bookmark-make-record): record the readability status of the buffer. (durand-eww-bookmark-jump): if the bookmark records a readable buffer, enter readable mode when opening it. * org-conf.el (durand-org-publish-sitemap): fix a small typo
2021-12-06* org-conf.el (org-structure-template-alist): proof template.JSDurand
2021-09-06org: conform to XHTML 1.0 strict in the websiteJSDurand
* org-conf.el (durand-org-publish-html-advice): I used the tag "time", which is not supported by XHTML 1.0 strict. Also the attribute "datetime" is invalid. So I use the "p" tag with a "subtitle" attribute to display the date/time information below the title of each article/post. Now the websites all conform to the XHTML 1.0 strict standard, which is a good thing, I surmise.
2021-09-05org: display feeds page in the sidebarJSDurand
* org-conf.el (durand-org-publish-sidebar): It is better to display the page containing the feeds in the sidebar, in my opinion.
2021-09-05org: Exclude javascript and add date/time infoJSDurand
* org-conf.el (org-html-head-include-scripts): Don't include that snippet here. (durand-org-publish-html-advice, org-html-publish-to-html): Advice the publishing function to include a date/time information in each post.
2021-08-29Generate Atom feeds for the websiteJSDurand
* org-conf.el (durand-sitemap-custom-string-alist) (durand-org-publish-sitemap): Add links to the atom files. (durand-org-post-process): Call `durand-org-generate-atom-feed' in this function. (durand-org-atom-titles-alist): Associate titles and feed files with the project name. (durand-org-atom-preamble, durand-org-atom-entry-template) (durand-org-atom-postamble): The generated Atom file is controlled by these template variables. (durand-org-atom-format-time): The zone of the time should be in a specific format that no time format string provides. So I write this function to provide this formatting. (durand-org-generate-atom-feed): Apply the templates to generate the Atom feed files.
2021-08-28Refinements to publish the blogJSDurand
* org-conf.el (durand-org-publish-sidebar) (durand-org-publish-insert-sidebar): Use a sidebar for the navigation: Instead of the built-in UP/HOME buttons, I want to go to sitemap files for different types of blog posts quickly. This is more convenient for the readers I think. This is inspired by the design of Protesilaos' website. (durand-org-publish-css-file): Add my own CSS file in the header. (durand-org-publish-favicon): Add the favicon I produced by a simple C program. (org-publish-project-alist): Add a Math type of blog posts. (durand-sitemap-custom-string-alist): Add a custom string to each type's sitemap file. (durand-org-publish-sitemap, durand-org-publish-sitemap-format): Use a table instead of a list in the sitemap. This is also inspired by the design of Protesilaos' website. (durand-org-publish-plist-get): The built-in `plist-get' mal-functions, and this is a replacement. After I update my Emacs, this problem might be fixed, and this replcement might not be needed anymore. (durand-org-publish-convert-time): Convert the result of `parse-time-string' to a time value. The result may lack some information, as the parsed string does not provide them. So this function supplies 0 for the missing values. Note that it assumes the year, month, and day cannot be missing, though. (durand-org-index-entries-max-num): Show at most a fixed number of entries on the index page. This maximum is set to 10 now. (durand-org-post-process): Shorten the date strings in the sitemap files: I need the exact date for sorting, but I don't want to show those information in the sitemap files. So I convert the long form of dates to comments, and use the shortened form for display. Also this generates a proper index page from the various sitemap files. Right now it will insert the entries to the index file each time this is called, which is kind of inefficient. I might adapt a more efficient method later on. I also want to generate Atom feeds in this function, but right now I don't have such a need, and this is not fulfilled yet. This kind of imitates the behaviour of Protesilaos' website.
2021-08-24Use Org-mode to publish a blogJSDurand
* org-conf.el (org-publish-project-alist): The settings are stored in this variable. (durand-sitemap-custom-string-alist): My hack to insert some strings in sitemap files. (durand-org-publish-sitemap): Custom function to generate sitemaps. (durand-org-publish-sitemap-format): Add a date to the format of the entries. (ox): Add a require to avoid some errors at startup.
2021-08-13fix comment headers and experiment with publishJSDurand
Some comment should start with three semi-colons so that they are treated as outline headings. * org-conf.el (org-publish-project-alist): Experiment with this.
2021-04-11Hyper experimentJSDurand
Adding some hyper key-bindings. * basic.el (ns-right-alternate-modifier): (ns-function-modifier): (ns-pop-up-frames): (ns-use-native-fullscreen): (ns-use-proxy-icon): (global-map): * org-conf.el (global-map): * view-conf.el (durand-view-map):
2021-03-26Require clock and elementJSDurand
In order to avoid some errors while loading Org-mode.
2021-03-18Don't hide emphasis markersJSDurand
2021-03-03Don't store bookmark when capturing.JSDurand
2021-02-08Constantly growingJSDurand
A lot of improvements.
2021-01-29Change the directory to .emacs.d now.JSDurand
Now I don't have to use a special command to launch Emacs. And the configuration files are placed in the normal position now.
2021-01-22Regular updatesJSDurand
In the course of configuring Emacs there are numerous changes to make. This is one regular step.
2021-01-17Tweak more things.JSDurand
* basic.el (recenter-positions): In effect nothing changed. (prot-pulse-line): Puling the line. (pulse): Useful built-in library. (durand-pulse-pulse-line): My own tweak. (durand-pulse-recenter-top): Recenter and pulse. * init.el (prepare-in-hook-once): Make it interactive. (global-map): Add Org-mode bindings. ("durand-chercher-pdf"): Search PDFs quickly. * modeline.el (modeline-format-left): Remove the vertical bar. * org-conf.el (org-adapt-indentation) (org-modules) (org-hide-emphasis-markers) (org-hide-macro-markers) (org-hide-leading-stars): Steal some configurations from Protesilaos. (global-map) (org-mode-map): Add Org-mode bindings. (durand-pulse-pulse-line): (org-follow-link-hook): Pulse and recenter when following the link.
2021-01-13A temporary intermeidate stepJSDurand
Now I got almost every functionality that we need, including pdf, mu4e, magit, et cetera.
2021-01-09temporary stateJSDurand