use /alias add /aliasname
/script install buffer_autoset.py
/buffer_autoset add irc.$server.$channel short_name $1
/detach $channel; /wait 1 /buffer close
For me, I want my channels to be sorted alphabetically, but I also have a bunch of channels that are more important than others, and some that are less important (e.g. games.) Same goes for servers.
To maintain the alphabetical order, while forcing custom positions, use the following:
/script install autosort.py
${info:autosort_order,${channel},#prioritychannel1,#prioritychannel2,#prioritychannel3,*,##lowpriority1,##lowpriority2,##lowpriority3,*,*}
/autosort rules insert 3 ${info:autosort_order,${server},freenode,*,efnet}
/autosort rules move 1 12
FREENODE
#PriorityChannel1
#PriorityChannel2
#PriorityChannel3
#OtherChannel1
#OtherChannel2
#LowPriority1
#LowPriority2
#LowPriority3
OtherServer1
OtherServer2
EFNet
weechat (system buffer)