Jason (jcreed) wrote,

The way per-language auto-indentation works in emacs is really no small amount of black magic, apparently. Either you're lucky and you have a C-like language and you can sorta reuse c-mode, or else you write it all yourself (I think julialang did this from what I can tell) or else you use SMIE, which can do a lot for you, but it feels like giving well-intentioned vague suggestions to a feral indentation-djinn.
Tags: emacs

  • (no subject)

    Emacs TIL* du jour: indent-rigidly (start end arg) Indent all lines starting in the region sideways by ARG columns. Called from a program, takes…

  • (no subject)

    Today I learned that C-c C-c and C-u C-c C-c are comment and uncomment region in (at least) C-mode in emacs. All these years I've been doing M-x…

  • (no subject)

    I recommend: HtmlFontify, a bit of elisp code for turning your current fontified emacs buffer into nice HTML. I hear it can also turn tags files…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded