我正在我的~/.emacs
中写一些关于lambdas的绑定,并且想要描述一下我做什么时出现的函数(例如)C-c ?
。我试图在lambda ()
之后立即放置一个字符串但是仍然没有做任何事情。如何在绑定列中显示相关内容?
功能仍然有效的示例,但文档没有:
(global-set-key (kbd "M-p") (lambda ()
"Moves the current line up by one"
(interactive)
(let ((col (current-column)))
(transpose-lines 1)
(forward-line -2)
(forward-char col))))
答案 0 :(得分:1)
您应该使用(defun my-func ()
"Moves the current line up by one"
(interactive)
(let ((col (current-column)))
(transpose-lines 1)
(forward-line -2)
(forward-char col)))
(global-set-key (kbd "M-p") 'my-func)
来定义交互式功能并绑定到该功能。
//Set the server side session like below
var vr_="demo.png";
'<%Session["path"] = "' + vr_ + '"; %>';
//In alert,checked the server side session value like below
alert('<%=Session["path"] %>');