2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-05 00:55:24 +00:00

Merge branch 'ondrej/add-emacs-flycheck-mode-configuration' into 'master'

Add emacs flycheck mode configuration

See merge request isc-projects/bind9!1165
This commit is contained in:
Ondřej Surý
2018-12-19 15:50:00 -05:00
3 changed files with 100 additions and 0 deletions

64
.dir-locals.el Normal file
View File

@@ -0,0 +1,64 @@
;;; Directory Local Variables
;;; For more information see (info "(emacs) Directory Variables")
((c-mode .
((eval .
(set (make-local-variable 'directory-of-current-dir-locals-file)
(file-name-directory (locate-dominating-file default-directory ".dir-locals.el"))
)
)
(eval .
(set (make-local-variable 'include-directories)
(list
;; top directory
(expand-file-name
(concat directory-of-current-dir-locals-file "./"))
;; current directory
(expand-file-name (concat default-directory "./"))
;; libisc
(expand-file-name
(concat directory-of-current-dir-locals-file "lib/isc/unix/include"))
(expand-file-name
(concat directory-of-current-dir-locals-file "lib/isc/pthreads/include"))
(expand-file-name
(concat directory-of-current-dir-locals-file "lib/isc/include"))
;; libdns
(expand-file-name
(concat directory-of-current-dir-locals-file "lib/dns/include"))
;; libisccc
(expand-file-name
(concat directory-of-current-dir-locals-file "lib/isccc/include"))
;; libisccfg
(expand-file-name
(concat directory-of-current-dir-locals-file "lib/isccfg/include"))
;; libns
(expand-file-name
(concat directory-of-current-dir-locals-file "lib/ns/include"))
;; libirs
(expand-file-name
(concat directory-of-current-dir-locals-file "lib/irs/include"))
;; libbind9
(expand-file-name
(concat directory-of-current-dir-locals-file "lib/bind9/include"))
(expand-file-name "/usr/local/opt/openssl@1.1/include")
(expand-file-name "/usr/local/opt/libxml2/include/libxml2")
(expand-file-name "/usr/local/include")
)
)
)
(eval setq flycheck-clang-include-path include-directories)
(eval setq flycheck-cpp-include-path include-directories)
)
))

View File

@@ -0,0 +1,35 @@
;;; Directory Local Variables
;;; For more information see (info "(emacs) Directory Variables")
((c-mode .
((eval .
(set (make-local-variable 'directory-of-current-dir-locals-file)
(file-name-directory (locate-dominating-file default-directory ".dir-locals.el"))
)
)
(eval .
(set (make-local-variable 'include-directories)
(list
(expand-file-name
(concat directory-of-current-dir-locals-file "../../../"))
(expand-file-name
(concat directory-of-current-dir-locals-file "include"))
(expand-file-name
(concat directory-of-current-dir-locals-file "../include"))
(expand-file-name
(concat directory-of-current-dir-locals-file "../"))
(expand-file-name
(concat directory-of-current-dir-locals-file "./"))
(expand-file-name
(concat directory-of-current-dir-locals-file "../../dns/include"))
(expand-file-name "/usr/local/opt/openssl@1.1/include")
(expand-file-name "/usr/local/opt/libxml2/include/libxml2")
(expand-file-name "/usr/local/include")
)
)
)
(eval setq flycheck-clang-include-path include-directories)
(eval setq flycheck-cpp-include-path include-directories)
)
))

View File

@@ -55,6 +55,7 @@ while (<CHANGES>) {
\.zone$ | # zone files
\.conf$ | # configuration files
\.conf\.in$ | # configuration files
\.dir-locals\.el | # emacs local variables
/(dnssafe|openssl)/.*\.[ch]$ | # imported
doc/(draft|expired|rfc)/ # imported
%x);