The recommended code style for FreeBSD source code described in the style(9) man page. In FILES section provided the Emacs Lisp file /usr/src/tools/tools/editing/freebsd.el with bsd function for using the recommended style.

To use this function in Emacs open your Emacs init file and add the following code:

(add-to-list 'load-path "/usr/src/tools/tools/editing/") ;; add new search path
(load-library "freebsd") ;; load formatting code
(add-hook 'c-mode-common-hook 'bsd) ;; create a hook for c-mode

Save the init file and (if you used Emacs for editing) run the command M-x eval-buffer.

Last modified: January 31, 2020



Write a Reply or Comment

Your email address will not be published.