Category Archives: emacs

2016-02-08 Emacs News

Links from reddit.com/r/emacs, /r/orgmode, Hacker News, planet.emacsen.org, Youtube, EmacsWiki:RecentChanges, the Emacs commit log, the changes to the Emacs NEWS file, and emacs-devel.

Past Emacs News round-ups

Publishing Emacs News as plain text, HTML, and attached Org file

Update 2016-02-05: Since @ThierryStoehr linked to this post about Emacs News-related code, I figured I’d add a link to the other support functions I’ve been using to help me with Emacs News summarization. There’s also this bit:

(let ((date (org-read-date nil nil "-mon")))
    (concat
     (my/org-list-from-rss "http://planet.emacsen.org/atom.xml" date) "\n"
     (shell-command-to-string (concat "~/bin/list-reddit-links.coffee emacs " date)) "\n"
     (shell-command-to-string (concat "~/bin/list-reddit-links.coffee org-mode " date)) "\n"
     "- New packages:\n"
     (my/list-new-packages) 
     "\n"))

Handy little things!

——

I’ve been publishing these weekly summaries of Emacs-related links on my blog and to the emacs-tangents mailing list / newsgroup. I started by posting plain text from Org Mode’s ASCII export, and people asked for Org Mode and HTML formats. So here’s some code that prepares things for pasting into a Gnus message buffer.

It turns out that order matters for multipart/alternative – start with plain text, then include richer alternatives. First time around, I put the HTML version first, so people didn’t end up seeing it. Anyway, here’s something that shows up properly now: text/plain, then text/html, with text/x-org attached. The heavy lifting is done with org-export-string-as, which exports into different formats.

  (defun my/share-emacs-news ()
    "Prepare current subtree for yanking into post."
    (interactive)
    ;; Draft Gnus article
    (save-restriction
      (org-narrow-to-subtree)
      (let ((org-export-html-preamble nil)
            (org-html-toplevel-hlevel 3)
            output)
        (setq output
              (apply
               'format
               "<#multipart type=alternative>
<#part type=\"text/plain\" disposition=inline>
%s
<#/part>
<#part type=\"text/html\" disposition=inline>
%s
<#/part>
<#/multipart>
<#part type=\"text/x-org\" disposition=attachment name=\"emacs-news.org\">
%s
<#/part>
"
               (mapcar
                (lambda (format)
                  (org-export-string-as (buffer-substring (point-min) (point-max)) format t))
                '(ascii html org))))
        (kill-new output))))

Howard Abrams showed me something like this in June 2015’s Emacs Hangout (~1:18:26) using org-mime-org-buffer-htmlize, which probably does the job in a much cooler way. =) I thought he had a blog post about it, but I can’t seem to find it. Anyway, there’s my little hack above!

2016-02-01 Emacs News

Update 2016-02-02: Added Hacker News links.

Links from reddit.com/r/emacs, /r/orgmode, Hacker News, planet.emacsen.org, Youtube, the Emacs commit log, the changes to the Emacs NEWS file, and emacs-devel.

Past Emacs News round-ups

2016-01-25 Emacs News

Links from reddit.com/r/emacs, /r/orgmode, Hacker News, planet.emacsen.org, Youtube, the Emacs commit log, the changes to the Emacs NEWS file, and emacs-devel.

Past Emacs News round-ups

2016-01-18 Emacs News

Links from reddit.com/r/emacs, /r/orgmode, Hacker News, planet.emacsen.org, Youtube, the Emacs commit log, the changes to the Emacs NEWS file, and emacs-devel.

Past Emacs News round-ups

2016-01-16 Emacs Hangout

Event page: https://plus.google.com/b/108840863190686221561/events/cqe6vjn5a3jbt8971n9ovljl78g

Timestamps:

  • 0:19 Posting to blog
  • 0:25 Cheat sheet
  • 0:31 Books
  • 0:36 Org Mode
  • 0:40 Emacs config
  • 0:42 Programming languages and modes
  • 0:51 Discovery of the week
  • 0:52 Kanban
  • 0:56 Bug trackers, Scrum
  • 1:04 Helm, input methods
  • 1:08 Mobile access
  • 1:18 Sharing

Text chat:

Neat links from Paul Harper, who couldn’t participate in the voice chat: I am writing in to share my ‘discovery of the week’ which was J. Alexander Branham’s Blog and his dotemacs on Github. He is a PhD Candidate at UT-Austin in the Department of Government. He has some very good posts on using Emacs for Markdown, LaTeX and R for academic types. It complements Kiern Healy’s one for Social Scientists, and Vikas Rawal’s Orgpaper.

me 8:49 PM Jira
Shakthi Kannan 8:58 PM https://github.com/ianxm/emacs-scrum
me 8:59 PM org-ascii-text-width
me 9:03 PM https://github.com/jtatarik/ical-event/blob/master/gnus-calendar.el
Puneeth Chaganti 9:03 PM Paul, there seemed to be a lot of noise on your end. I muted you. Unmute yourself when you want to speak. Thanks!
Bill Zimmerly 9:13 PM Great ssh client for Android –&gt; https://play.google.com/store/apps/details?id=com.server.auditor.ssh.client
me 9:13 PM http://zot.github.io/Leisure/?load=http://zot.github.io/Leisure/elisp/README.org
me 9:18 PM tmate
Joe Heyming 9:21 PM gotta go, bye
me 9:22 PM Quick tmate demo: ssh [email protected]
Puneeth Chaganti 9:23 PM I can see the emacs tutorial. ~.