[Babel-users] emacs and "babeld style"

Dave Taht dave.taht at gmail.com
Sun Nov 11 15:40:51 GMT 2018


I just rather painlessly upgraded to emacs 25.2.2... and noticed
(perhaps it's been there a long time?) that there's a "guess style
from this buffer" thihg...

I think it did a pretty good job. but certainly babel is not my
default style. Is this correct?

(c-add-style "babel"
         '("gnu"
           (c-basic-offset . 4)    ; Guessed value
           (c-offsets-alist
        (block-close . 0)    ; Guessed value
        (brace-list-entry . 0)    ; Guessed value
        (case-label . 0)    ; Guessed value
        (defun-block-intro . +)    ; Guessed value
        (defun-close . 0)    ; Guessed value
        (defun-open . 0)    ; Guessed value
        (statement . 0)            ; Guessed value
        (statement-block-intro . +) ; Guessed value
        (statement-case-intro . +) ; Guessed value
        (substatement . +)       ; Guessed value
        (topmost-intro . 0)       ; Guessed value
        (topmost-intro-cont . 0) ; Guessed value
        (access-label . -)
        (annotation-top-cont . 0)
        (annotation-var-cont . +)
        (arglist-close . c-lineup-close-paren)
        (arglist-cont c-lineup-gcc-asm-reg 0)
        (arglist-cont-nonempty . c-lineup-arglist)
        (arglist-intro . c-lineup-arglist-intro-after-paren)
        (block-open . 0)
        (brace-entry-open . 0)
        (brace-list-close . 0)
        (brace-list-intro . +)
        (brace-list-open . +)
        (c . c-lineup-C-comments)
        (catch-clause . 0)
        (class-close . 0)
        (class-open . 0)
        (comment-intro . c-lineup-comment)
        (composition-close . 0)
        (composition-open . 0)
        (cpp-define-intro c-lineup-cpp-define +)
        (cpp-macro . -1000)
        (cpp-macro-cont . +)
        (do-while-closure . 0)
        (else-clause . 0)
        (extern-lang-close . 0)
        (extern-lang-open . 0)
        (friend . 0)
        (func-decl-cont . +)
        (inclass . +)
        (incomposition . +)
        (inexpr-class . +)
        (inexpr-statement . +)
        (inextern-lang . +)
        (inher-cont . c-lineup-multi-inher)
        (inher-intro . +)
        (inlambda . c-lineup-inexpr-block)
        (inline-close . 0)
        (inline-open . 0)
        (inmodule . +)
        (innamespace . +)
        (knr-argdecl . 0)
        (knr-argdecl-intro . 5)
        (label . 0)
        (lambda-intro-cont . +)
        (member-init-cont . c-lineup-multi-inher)
        (member-init-intro . +)
        (module-close . 0)
        (module-open . 0)
        (namespace-close . 0)
        (namespace-open . 0)
        (objc-method-args-cont . c-lineup-ObjC-method-args)
        (objc-method-call-cont c-lineup-ObjC-method-call-colons
c-lineup-ObjC-method-call +)
        (objc-method-intro .
                   [0])
        (statement-case-open . +)
        (statement-cont . +)
        (stream-op . c-lineup-streamop)
        (string . -1000)
        (substatement-label . 0)
        (substatement-open . +)
        (template-args-cont c-lineup-template-args +))))


-- 

Dave Täht
CTO, TekLibre, LLC
http://www.teklibre.com
Tel: 1-831-205-9740



More information about the Babel-users mailing list