Skip to content

Commit

Permalink
Inititial tree-sitter-magik support (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
krn-robin authored Jul 20, 2023
1 parent d59e921 commit e47710e
Show file tree
Hide file tree
Showing 8 changed files with 338 additions and 360 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
*~
.*
*.elc
/magik-mode-autoloads.el
/magik-mode-pkg.el
4 changes: 2 additions & 2 deletions magik-aliases.el
Original file line number Diff line number Diff line change
Expand Up @@ -526,8 +526,8 @@ Returns nil if FILE cannot be expanded."
"Aliases Files (%d)")
last))))

(eval-after-load 'msb
'(magik-aliases-msb-configuration))
(with-eval-after-load 'msb
(magik-aliases-msb-configuration))

(provide 'magik-aliases)
;;; magik-aliases.el ends here
13 changes: 6 additions & 7 deletions magik-cb.el
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@
(require 'magik-mode)
(require 'magik-session)
(require 'magik-utils)
(require 'cl-lib)
(require 'easymenu)

(defgroup magik-cb nil
Expand Down Expand Up @@ -655,7 +654,7 @@ To view the help on these variables type C-h v [Return] [variable-name]"

(use-local-map magik-cb-mode-map)
(easy-menu-add magik-cb-menu)
(set-syntax-table magik-mode-syntax-table)
(set-syntax-table magik-base-mode-syntax-table)

(setq major-mode 'magik-cb-mode
buffer-read-only t
Expand Down Expand Up @@ -1551,7 +1550,7 @@ be careful to preserve the position in \"*cb2*\"."
font-lock-defaults '(magik-cb2-font-lock-keywords nil t ((?_ . "w"))))

(use-local-map magik-cb-mode-map)
(set-syntax-table (copy-syntax-table magik-mode-syntax-table))
(set-syntax-table (copy-syntax-table magik-base-mode-syntax-table))
(modify-syntax-entry ?\" "w")
(modify-syntax-entry ?- "w")

Expand Down Expand Up @@ -2458,11 +2457,11 @@ See the variable `magik-cb-generalise-file-name-alist' to provide more customisa
"CB (%d)")
last))))

(eval-after-load 'msb
'(magik-cb-msb-configuration))
(with-eval-after-load 'msb
(magik-cb-msb-configuration))

(eval-after-load 'autocomplete
'(require 'magik-cb-ac))
(with-eval-after-load 'autocomplete
(require 'magik-cb-ac))

(progn
;; ----------------------- cb mode ------------------------
Expand Down
Loading

0 comments on commit e47710e

Please sign in to comment.