Closed wgmitchener closed 4 years ago
Can you confirm that your active major mode is actually Julia mode? There's an issue with the version on melpa right now that can cause julia-mode to fail to load: https://github.com/JuliaEditorSupport/julia-emacs/issues/91
Result of C-h m is:
Enabled minor modes: Auto-Composition Auto-Compression Auto-Encryption Blink-Cursor Centaur-Tabs Diff-Auto-Refine Doom-Modeline Eldoc Electric-Indent File-Name-Shadow Font-Lock Global-Auto-Revert Global-Eldoc Global-Font-Lock Global-Hl-Line Line-Number Menu-Bar Mouse-Wheel Recentf Shell-Dirtrack Show-Paren Tex-Pdf Tex-Source-Correlate Tool-Bar Tooltip Transient-Mark Treemacs-Filewatch Treemacs-Fringe-Indicator Treemacs-Git Treemacs-Icons-Dired Xterm-Mouse
(Information about these minor modes follows the major mode info.)
ESS[julia] mode defined in ‘ess-julia.el’: Major mode for editing julia source. See ‘ess-mode’ for more help.
In addition to any hooks its parent mode ‘julia-mode’ might have run, this mode runs the hook ‘ess-julia-mode-hook’, as the final or penultimate step during initialization.
key binding
TAB julia-latexsub-or-indent ESC Prefix Command
C-M-q prog-indent-sexp
Auto-Composition minor mode (no indicator): Toggle Auto Composition mode. With a prefix argument ARG, enable Auto Composition mode if ARG is positive, and disable it otherwise. If called from Lisp, enable the mode if ARG is omitted or nil.
When Auto Composition mode is enabled, text characters are automatically composed by functions registered in ‘composition-function-table’.
You can use ‘global-auto-composition-mode’ to turn on Auto Composition mode in all buffers (this is the default). Auto-Compression minor mode (no indicator): Toggle Auto Compression mode. With a prefix argument ARG, enable Auto Compression mode if ARG is positive, and disable it otherwise. If called from Lisp, enable the mode if ARG is omitted or nil.
Auto Compression mode is a global minor mode. When enabled, compressed files are automatically uncompressed for reading, and compressed when writing. Auto-Encryption minor mode (no indicator): Toggle automatic file encryption/decryption (Auto Encryption mode). With a prefix argument ARG, enable Auto Encryption mode if ARG is positive, and disable it otherwise. If called from Lisp, enable the mode if ARG is omitted or nil.
(fn &optional ARG) Blink-Cursor minor mode (no indicator): Toggle cursor blinking (Blink Cursor mode). With a prefix argument ARG, enable Blink Cursor mode if ARG is positive, and disable it otherwise. If called from Lisp, enable the mode if ARG is omitted or nil.
If the value of ‘blink-cursor-blinks’ is positive (10 by default), the cursor stops blinking after that number of blinks, if Emacs gets no input during that time.
See also ‘blink-cursor-interval’ and ‘blink-cursor-delay’.
This command is effective only on graphical frames. On text-only terminals, cursor blinking is controlled by the terminal.
(fn &optional ARG) Centaur-Tabs minor mode (no indicator): Toggle display of a tab bar in the header line. With prefix argument ARG, turn on if positive, otherwise off. Returns non-nil if the new state is enabled.
key binding
C-c Prefix Command
@wgmitchener : it looks like you are using ESS's julia mode, not this one. Did this one work for you before and break recently, or are you just setting it up?
I merged the fix for the issue @non-Jedi mentioned, please try again once it trickles through MELPA (if that's what you are using for installation).
Ah! Sorry about that. There was a mistake in my .emacs file. Now that I've fixed it, indentation is working correctly.
I'm using emacs-26.2-2.fc31.x86_64 with julia-mode-20191128.1452 in melpa. I can get it to indent functions, but it doesn't indent structs at all. Didn't earlier versions indent structs?
struct Example x::Float64 # should be indented when I hit tab but it doesn't work end