|
@@ -1138,6 +1138,11 @@ define_command("switch-buffer", function()
|
|
|
editor:buffer_switch_mode()
|
|
editor:buffer_switch_mode()
|
|
|
end, "Switch buffer")
|
|
end, "Switch buffer")
|
|
|
|
|
|
|
|
|
|
+-- Alias for switch-buffer to match Emacs expectations
|
|
|
|
|
+define_command("switch-to-buffer", function()
|
|
|
|
|
+ editor:buffer_switch_mode()
|
|
|
|
|
+end, "Switch buffer (Alias)")
|
|
|
|
|
+
|
|
|
define_command("list-buffers", function()
|
|
define_command("list-buffers", function()
|
|
|
-- Use existing implementation via keybinding or duplicate logic?
|
|
-- Use existing implementation via keybinding or duplicate logic?
|
|
|
-- Calling the function bound to C-x C-b if we can find it, or just define it here.
|
|
-- Calling the function bound to C-x C-b if we can find it, or just define it here.
|