Skip to main content
8 events
when toggle format what by license comment
Apr 5, 2019 at 18:01 history edited jagrg CC BY-SA 4.0
Complete template with TAB
Apr 3, 2019 at 9:24 comment added jagrg Hm. I'm not sure. I suppose you could isolate sp by disabling the other modes. This would tell you if sp is doing its job if that's what you want to know.
Apr 3, 2019 at 0:50 comment added Trey Sorry, I think I misstated my question... I'm not entirely sure the thing that's doubling my brackets and quotes is smartparens. I know from my config variables that in my C# mode configuration it's electric-pair-mode. In sh-script-mode, if I output the entire list of minor modes active, smartparens, electric-pair, and autopair are all listed. So how can I find out what's being called when I hit a particular key if its binding is just self-insert-command?
Apr 2, 2019 at 21:35 history edited jagrg CC BY-SA 4.0
edited body
Apr 2, 2019 at 21:33 comment added jagrg If you want smartparens enabled only in shell you have to add smartparens-mode to sh-mode-hook. You should see SP in the modeline. I think the self-insert-command result you're seeing is expected, even with sp enabled.
Apr 2, 2019 at 17:41 comment added Trey I like this, but I just noticed that my init file's use-package invocation of smartparens has (progn (require 'smartparens-config) ; (smartparens-global-mode 1) )) (which in the comment will get confused, but the smartparens-global-mode line is commented out). Anywhere I run C-h k <ret> {,(,[,',", I get self-insert, so how can I determine if I'm actually using smartparens, or something else, in sh-script-mode?
Apr 2, 2019 at 13:26 history edited jagrg CC BY-SA 4.0
added 70 characters in body
Apr 2, 2019 at 13:04 history answered jagrg CC BY-SA 4.0