• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Mikey Boldt

What am I doing?

  • Home
  • About Mikey
  • Contact

Archives for January 2012

Emacs: open-line with fill-prefix

January 16, 2012 by Leave a Comment

This has happened to me one-too-many times, so I figure I’d post it:

I’m writing a longish comment in some code. I write it on a single line at first, then call fill-paragraph to let Emacs break it up into multiple lines of sane width. But, it prefixes each line with some text I’ve recently killed. The same prefix pops up when I call open-line as well.

I dug into this a bit, and found that I must have accidentally set the variable fill-prefix (which is bound to C-x .). To undo this, just call set-variable and set fill-prefix to nil, and go back to happily opening lines and filling paragraphs.

Filed Under: Tech Tagged With: emacs

Execute Code via Org-mode Links

January 5, 2012 by Leave a Comment

I was recently browsing the org-mode link documentation to see how I could link to my Gnus email inbox1. Looking through, I noticed a couple of interesting link capabilities I had not known about before:

shell:ls *.org A shell command
elisp:org-agenda Interactive Elisp command
elisp:(find-file-other-frame "Elisp.org") Elisp form to evaluate

Having the ability to run arbitrary shell commands and Elisp code via an Org-mode link seems very powerful. This is mainly a note-to-self to remember this capability. I will report back if/when I find a good practical application for this.

Footnotes:

1 The format is gnus:group.

Filed Under: Tech Tagged With: emacs, orgmode

Primary Sidebar

Recent Posts

  • Recover from Blank Screen After Unplugging External Display in XFCE
  • Remove a Key Binding From Emacs Mode
  • Disable Bluetooth on Ubuntu Startup
  • Geequie: Cull Photos on Linux
  • Sync PDFs with Android using Dropsync

Recent Comments

  • Ricardo Orbegozo on Linking to MS Office File in Emacs Org Mode
  • eliaso on Linking to MS Office File in Emacs Org Mode
  • Joao Brito on Linking to MS Office File in Emacs Org Mode
  • Unable to install Emacs 24 from ppa:cassou/emacs | Ubuntu InfoUbuntu Info on Install Emacs 24 in Ubuntu
  • Unable to install Emacs 24 from ppa:cassou/emacs | WyldePlayground.netWyldePlayground.net - on Install Emacs 24 in Ubuntu

Copyright © 2025 · Mikey Boldt Theme on Genesis Framework · WordPress · Log in