ctietze, 5 months ago 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.
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.
slackline, 5 months ago @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... https://emacs.stackexchange.com/questions/12396/run-command-when-opening-a-file-of-a-specific-filetype #emacs
@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...
https://emacs.stackexchange.com/questions/12396/run-command-when-opening-a-file-of-a-specific-filetype
#emacs
zardoz03, 5 months ago @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
@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
magic-mode-alist' that does
ctietze, 5 months ago @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 :)
@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 :)
Add comment