Binding M- / M- in Emacs 23.1.1

后端 未结 7 550
南笙
南笙 2020-11-27 18:36

I\'m trying to put in a feature that I miss from Eclipse, where Alt+[Up/Down] transposes the lines up or down, but can not for the life of m

相关标签:
7条回答
  • 2020-11-27 19:20

    Assuming you have the functions transpose-line-up and transpose-line-down already defined (as it seems to be from the example code in your original question):

    (global-set-key [(meta up)] 'transpose-line-up)
    (global-set-key [(meta down)] 'transpose-line-down)
    
    0 讨论(0)
提交回复
热议问题