[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/julia-mode 64d86a4 215/352: Added customization options
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/julia-mode 64d86a4 215/352: Added customization options |
Date: |
Sun, 29 Aug 2021 11:22:48 -0400 (EDT) |
branch: elpa/julia-mode
commit 64d86a45871898d9915b9e23d82f46e175b20223
Author: Philip Woods <elzairthesorcerer@gmail.com>
Commit: Yichao Yu <yyc1992@gmail.com>
Added customization options
---
julia-mode.el | 28 ++++++++++++++++++++--------
1 file changed, 20 insertions(+), 8 deletions(-)
diff --git a/julia-mode.el b/julia-mode.el
index 6ccb2cf..7507c7a 100644
--- a/julia-mode.el
+++ b/julia-mode.el
@@ -3101,9 +3101,24 @@ end"))
;; Code for `inferior-julia-mode'
(require 'comint)
-(defvar julia-file-path "/usr/bin/julia" "Path to the program used by
`inferior-julia'.")
+(defgroup julia
+ '()
+ "Julia Programming Language."
+ :group 'languages
+ :prefix "julia-")
-(defvar julia-arguments '() "Commandline arguments to pass to `julia'.")
+(defcustom julia-program "julia"
+ "Path to the program used by `inferior-julia'."
+ :type 'string
+ :group 'julia)
+
+(defcustom julia-arguments '()
+ "Commandline arguments to pass to `julia-program'."
+ :type 'string
+ :group 'julia)
+
+(defvar julia-prompt-regexp "julia>"
+ "Regexp for matching `inferior-julia' prompt.")
(defvar inferior-julia-mode-map
(let ((map (nconc (make-sparse-keymap) comint-mode-map)))
@@ -3112,13 +3127,10 @@ end"))
map)
"Basic mode map for `inferior-julia-mode'.")
-(defvar inferior-julia-prompt-regexp "julia>"
- "Prompt for `inferior-julia'.")
-
(defun inferior-julia ()
"Run an inferior instance of `julia' inside Emacs."
(interactive)
- (let ((julia-program julia-file-path)
+ (let ((julia-program julia-program)
(buffer (get-buffer-create "Julia")))
(when (not (comint-check-proc "Julia"))
(apply #'make-comint-in-buffer "Julia" "Julia" julia-program
julia-arguments))
@@ -3134,10 +3146,10 @@ end"))
\\<inferior-julia-mode-map>"
nil "Julia"
- (setq comint-prompt-regexp inferior-julia-prompt-regexp)
+ (setq comint-prompt-regexp julia-prompt-regexp)
(setq comint-prompt-read-only t)
(set (make-local-variable 'font-lock-defaults) '(julia-font-lock-keywords t))
- (set (make-local-variable 'paragraph-start) inferior-julia-prompt-regexp)
+ (set (make-local-variable 'paragraph-start) julia-prompt-regexp)
(set (make-local-variable 'indent-line-function) 'julia-indent-line))
(add-hook 'inferior-julia-mode-hook 'inferior-julia--initialize)
- [nongnu] elpa/julia-mode ba5ba4c 168/352: Highlight function names when defined with the assignment syntax., (continued)
- [nongnu] elpa/julia-mode ba5ba4c 168/352: Highlight function names when defined with the assignment syntax., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode caab4dc 172/352: Respect the active region when indenting., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode e5f8145 191/352: Use a separate face for Julia macro invocations., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 493fb7f 192/352: note #8947 in julia-mode.el, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 569d41a 206/352: julia-mode.el: stagedfunction, @[no]inline, indented functions, "=:symbol", ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 6f075d7 224/352: Use syntax-propertize-function on Emacs 24., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 96499ff 209/352: Silence Emacs byte-compilation warnings., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode c982fd6 216/352: Changed name of Emacs buffer to *Julia*, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 7c1603c 226/352: Use more common name for indentation setting, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode dd3d682 225/352: Fix Emacs 23 error., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 64d86a4 215/352: Added customization options,
ELPA Syncer <=
- [nongnu] elpa/julia-mode c7e3232 218/352: some tuple redesign follow-ups, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 5ee867e 211/352: Changed inferior-julia function in contrib/julia-mode.el to apply, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 0c6673a 212/352: Changed input method for Julia Emacs buffer to TeX, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 6781ef1 220/352: Fix #11673, bad indent after comments ending in =, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 892beb1 231/352: Fix #12528, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 0526f2f 242/352: Fix spelling of 'delimiter', ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 2b15d76 256/352: bol, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 7802452 263/352: Merge pull request #35 from tpapp/fix-10, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 9c36479 264/352: Merge pull request #36 from JuliaEditorSupport/jb/typekeywords, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode feb6e79 259/352: Merge pull request #31 from RalphAS/custom-lookback, ELPA Syncer, 2021/08/29