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

Mikey Boldt

What am I doing?

  • Home
  • About Mikey
  • Contact

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

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

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