summaryrefslogtreecommitdiff
path: root/src/site/xdoc/user-emacs.xml
diff options
context:
space:
mode:
authoryvesf <yvesf-git@xapek.org>2011-03-25 22:11:15 +0100
committeryvesf <yvesf-git@xapek.org>2011-03-25 22:11:15 +0100
commitd0b58c5a017d45f7c3667c2d88391feef58ba6fb (patch)
treed343be6f121281e4838ddf72a1d5e367b1f906f2 /src/site/xdoc/user-emacs.xml
parent787669fc5ae68b62c27092c79be3772e5b3234f4 (diff)
downloaddhbw-calendar-d0b58c5a017d45f7c3667c2d88391feef58ba6fb.tar.gz
dhbw-calendar-d0b58c5a017d45f7c3667c2d88391feef58ba6fb.zip
Doku: Anbindung Emacs
Diffstat (limited to 'src/site/xdoc/user-emacs.xml')
-rw-r--r--src/site/xdoc/user-emacs.xml35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/site/xdoc/user-emacs.xml b/src/site/xdoc/user-emacs.xml
new file mode 100644
index 0000000..2df021e
--- /dev/null
+++ b/src/site/xdoc/user-emacs.xml
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<document xmlns="http://maven.apache.org/XDOC/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/XDOC/2.0 http://maven.apache.org/xsd/xdoc-2.0.xsd">
+ <properties>
+ <title>Anbindung GNU Emacs</title>
+ <author>Yves Fischer</author>
+ <date>24.02.2011</date>
+ </properties>
+
+ <body>
+ <section name="GNU Emacs iCalendar Import">
+ <p>
+ siehe auch
+ <a
+ href="http://www.gnu.org/software/emacs/manual/html_node/emacs/Importing-Diary.html">GNU Emacs Manual: 38.12 Importing and Exporting Diary Entries
+ </a>
+ .
+ </p>
+ <source>(require 'url)
+(require 'icalendar)
+
+(defconst dualis-url "https://10.2.2.21/dhbwcalendar/ics")
+(defconst dualis-do-not-ask t)
+
+(defun dualis-import ()
+ (let ((buffer (url-retrieve-synchronously dualis-url)))
+ (save-excursion
+ (set-buffer buffer)
+ (icalendar-import-buffer nil dualis-do-not-ask)
+ (kill-buffer (current-buffer)))))
+ </source>
+ </section>
+ </body>
+</document>
+