Anyone here browing SQLite files with #Emacs using sqlite-mode who has a workaround for having to use `sqlite-mode-open-file'?
I want to use `sqlite-mode-open-file' when opening a .sqlite file automatically.
@ctietze Not sqlite specific but I was looking into how to do something when a particular file was opened earlier today and found this post useful...
@slackline
i currently push a closure into `magic-mode-alist' that does `(sqlite-open-file buffer-file-name)', since it matches on first few characters/bytes rather than file extension.
@ctietze
@zardoz03 @slackline Didn't know about `magic-mode-alist'! That's super useful!
Works like a charm with this 1 file I have. Need to hone the matcher, probably :)