diff --git a/.emacs.d/config/base.el b/.emacs.d/config/base.el index 874e284..ab9148d 100644 --- a/.emacs.d/config/base.el +++ b/.emacs.d/config/base.el @@ -20,7 +20,7 @@ ;; syntax coloring (global-font-lock-mode t) -;; show end of fill-column length +;; syntax coloring (global-display-fill-column-indicator-mode t) ;; paren matching diff --git a/.emacs.d/config/c.el b/.emacs.d/config/c.el index f013035..5f0efc4 100644 --- a/.emacs.d/config/c.el +++ b/.emacs.d/config/c.el @@ -1,3 +1,8 @@ ;; set c style to linux and indention to 2 (setq c-default-style "linux" c-basic-offset 2) + +;; set max line length to 100 +(add-hook 'c-mode-hook + (lambda () + (set-fill-column 100)))