alex-hhh / emacs-sql-indent

Syntax based indentation for SQL files inside GNU Emacs
GNU General Public License v3.0
121 stars 18 forks source link

autoloading failed #98

Closed vinurs closed 4 years ago

vinurs commented 4 years ago

i use doom emacs, when i open a sql file, then enable sql mode, it output this error

File mode specification error: (error Autoloading file /Users/xxx/.emacs.d/.local/straight/build/sql-indent/sql-indent.el failed to define function sql-indent)
alex-hhh commented 4 years ago

This package does not define a sql-indent function, but a sqlind-minor-mode function. For installation instructions, please see the readme file.

I am not familiar with doom emacs, if it uses a special installation process, you may want to ask for help on the doom emacs forums.

alex-hhh commented 4 years ago

Also, this error can happen if you try to enable the mode using a mode variable, such as placing this at the beginning of the SQL file.

This will not work:

-- -*- mode: sql-indent -*- 

this will also not work

-- Local Variables:
-- mode: sql-indent
-- End