Loading ...
Sorry, an error occurred while loading the content.

2639Re: Smart Home Macro

Expand Messages
  • cp200205
    May 6, 2011
    • 0 Attachment
      I made the macro more complex than necessary. Below is a simpler version with a few qwirks fixed...

      ==== BEGIN ====
      ; Go to the first non-blank character on the current line. If already there,
      ; go to column 1
      define-macro smart-home
      set-variable #l0 $window-acol

      beginning-of-line

      !while &sin @wc " \t"
      !force forward-char
      !done

      !if &equal $window-acol #l0
      beginning-of-line
      !end
      !emacro
      ==== END ====

      You can get the updated version on my github repo with other items as well, https://github.com/jcowgar/dotmicroemacs

      Jeremy
    • Show all 5 messages in this topic