From d97285eb65d56b9e3a1208c4de3b991e93057495 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 4 Apr 2017 15:37:42 -0400 Subject: [PATCH] doc: link to Andrea's emacs mode --- doc/emacs/README.md | 8 +------- doc/emacs/zig-mode.el | 18 ------------------ 2 files changed, 1 insertion(+), 25 deletions(-) delete mode 100644 doc/emacs/zig-mode.el diff --git a/doc/emacs/README.md b/doc/emacs/README.md index 39bc1112ca..3e8ff6f04d 100644 --- a/doc/emacs/README.md +++ b/doc/emacs/README.md @@ -1,7 +1 @@ -To use this emacs syntax file, add this to your emacs configuration file: - -```emacs -(add-to-list 'load-path "/path/to/zig/doc/emacs/") -(autoload 'zig-mode "zig-mode" nil t) -(add-to-list 'auto-mode-alist '("\\.zig\\'" . zig-mode)) -``` +https://github.com/AndreaOrru/zig-mode diff --git a/doc/emacs/zig-mode.el b/doc/emacs/zig-mode.el deleted file mode 100644 index df94a44bd4..0000000000 --- a/doc/emacs/zig-mode.el +++ /dev/null @@ -1,18 +0,0 @@ -(setq zig - '(("\\b\\(@sizeOf\\|@alignOf\\|@maxValue\\|@minValue\\|@memberCount\\|@typeOf\\|@addWithOverflow\\|@subWithOverflow\\|@mulWithOverflow\\|@shlWithOverflow\\|@cInclude\\|@cDefine\\|@cUndef\\|@compileVar\\|@generatedCode\\|@ctz\\|@clz\\|@import\\|@cImport\\|@errorName\\|@typeName\\|@isInteger\\|@isFloat\\|@canImplicitCast\\|@embedFile\\|@cmpxchg\\|@fence\\|@divExact\\|@truncate\\|@compileError\\|@compileLog\\|@intType\\|@unreachable\\|@setDebugSafety\\|@alloca\\|@setGlobalAlign\\|@setGlobalLinkage\\|@setGlobalSection\\)" . font-lock-builtin-face) - -("\\b\\(fn\\|use\\|while\\|for\\|break\\|continue\\|goto\\|if\\|else\\|switch\\|try\\|return\\|defer\\|asm\\|unreachable\\|const\\|var\\|extern\\|packed\\|export\\|pub\\|noalias\\|inline\\|comptime\\|nakedcc\\|coldcc\\|volatile\\|struct\\|enum\\|union\\)\\b" . font-lock-keyword-face) - - ("\\b\\(null\\|undefined\\|this\\)\\b" . font-lock-constant-face) - -("\\b\\(bool\\|f32\\|f64\\|void\\|Unreachable\\|type\\|error\\|i8\\|\\|u8\\|\\|i16\\|\\|u16\\|\\|i32\\|\\|u32\\|\\|64\\|u64\\|isize\\|usize\\|c_short\\|c_ushort\\|c_int\\|c_uint\\|c_long\\|c_ulong\\|c_longlong\\|c_ulonglong\\|c_long_double\\)\\b" . font-lock-type-face) - - )) - - - -(define-derived-mode zig-mode c-mode "zig mode" - "Major mode for editing Zig language" - (setq font-lock-defaults '(zig))) - -(provide 'zig-mode)