1
0
Fork 0

Turn abbrevs into "system" abbrevs

This prevents them from being saved to the abbrevs_defs file.
This commit is contained in:
Tom Willemse 2020-12-12 22:10:43 -08:00
parent 3fa4730a05
commit d7eb818ecf
3 changed files with 9 additions and 9 deletions

View file

@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org> ;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local ;; Keywords: local
;; Version: 2020.1212.220101 ;; Version: 2020.1212.220909
;; Package-Requires: (oni-flycheck oni-fci oni-lsp reformatter) ;; Package-Requires: (oni-flycheck oni-fci oni-lsp reformatter)
;; This program is free software; you can redistribute it and/or modify ;; This program is free software; you can redistribute it and/or modify
@ -52,8 +52,8 @@
'display-fill-column-indicator-mode 'display-fill-column-indicator-mode
'fci-mode)) 'fci-mode))
(define-abbrev c-mode-abbrev-table "and" "&&") (define-abbrev c-mode-abbrev-table "and" "&&" nil :system t)
(define-abbrev c-mode-abbrev-table "or" "||") (define-abbrev c-mode-abbrev-table "or" "||" nil :system t)
;;;###autoload(with-eval-after-load 'cc-mode (require 'oni-c)) ;;;###autoload(with-eval-after-load 'cc-mode (require 'oni-c))

View file

@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org> ;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local ;; Keywords: local
;; Version: 2020.1210.205218 ;; Version: 2020.1212.221001
;; Package-Requires: (csharp-mode oni-company oni-flycheck oni-yasnippet oni-hydra oni-fci oni-lsp smartparens) ;; Package-Requires: (csharp-mode oni-company oni-flycheck oni-yasnippet oni-hydra oni-fci oni-lsp smartparens)
;; This program is free software; you can redistribute it and/or modify ;; This program is free software; you can redistribute it and/or modify
@ -159,8 +159,8 @@ _cs_: Solution
(define-key csharp-mode-map (kbd "C-c SPC") 'oni-csharp-hydra/body) (define-key csharp-mode-map (kbd "C-c SPC") 'oni-csharp-hydra/body)
(define-abbrev csharp-mode-abbrev-table "and" "&&") (define-abbrev csharp-mode-abbrev-table "and" "&&" nil :system t)
(define-abbrev csharp-mode-abbrev-table "or" "||") (define-abbrev csharp-mode-abbrev-table "or" "||" nil :system t)
;;;###autoload ;;;###autoload
(add-to-list 'auto-mode-alist '("\\.xaml\\'" . nxml-mode)) (add-to-list 'auto-mode-alist '("\\.xaml\\'" . nxml-mode))

View file

@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org> ;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local ;; Keywords: local
;; Version: 2020.1210.205100 ;; Version: 2020.1212.221032
;; Package-Requires: (oni-fci oni-data-dir oni-lsp oni-hydra lsp-java) ;; Package-Requires: (oni-fci oni-data-dir oni-lsp oni-hydra lsp-java)
;; This program is free software; you can redistribute it and/or modify ;; This program is free software; you can redistribute it and/or modify
@ -83,8 +83,8 @@
(define-key java-mode-map (kbd "C-c r") 'java-refactor-hydra/body) (define-key java-mode-map (kbd "C-c r") 'java-refactor-hydra/body)
(define-key java-mode-map (kbd "C-c d") 'java-documentation-hydra/body) (define-key java-mode-map (kbd "C-c d") 'java-documentation-hydra/body)
(define-abbrev java-mode-abbrev-table "and" "&&") (define-abbrev java-mode-abbrev-table "and" "&&" nil :system t)
(define-abbrev java-mode-abbrev-table "or" "||") (define-abbrev java-mode-abbrev-table "or" "||" nil :system t)
(add-to-list 'auto-insert-alist (add-to-list 'auto-insert-alist
'("\\.java\\'" '("\\.java\\'"