5 Jan 2012 13:30
[PATCH] c-set-region-active / activate-mark-hook
Andrew Burgess <aburgess <at> broadcom.com>
2012-01-05 12:30:52 GMT
2012-01-05 12:30:52 GMT
Hi, I create a config file ~/tmp/setup.el containing: (defun cursor-activate-mark () (setq cursor-type 'bar)) (add-hook 'activate-mark-hook 'cursor-activate-mark) (defun cursor-deactivate-mark () (setq cursor-type 'box)) (add-hook 'deactivate-mark-hook 'cursor-deactivate-mark) (defun setup-c-mode () (c-toggle-auto-newline 1)) (add-hook 'c-mode-hook 'setup-c-mode) If I start emacs on a new empty file, emacs -Q -l ~/tmp/setup.el ~/tmp/newfile.c First I need to have a mark set, so, M-x set-mark-command This should turn the cursor from standard box into a bar form. Now, M-x keyboard-quit The cursor should return to box form.(Continue reading)
martin
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free!
> ! (widen
> ! (let* ((safe-place (c-state-safe-place (point)))
My `widen' doesn't like any arguments.
Thanks, martin
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
RSS Feed