1 Star 0 Fork 2

zhengchen/emacs

forked from latpaw/emacs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
init-workgroups.el 984 Bytes
一键复制 编辑 原始数据 按行查看 历史
redguardtoo 提交于 2013-01-16 20:18 . tweak hotkey of workgroups.el
(require 'workgroups)
;; save/load windows configuration into this file
(setq wg-file (expand-file-name "~/.emacs.d/.wg-file.el"))
;; actually, I use evil-leader instead
(setq wg-prefix-key (kbd "C-c w"))
;; I've already customized my mode-line for other packages
(setq wg-mode-line-on nil)
;; There is a bug in modeline, @see https://github.com/tlh/workgroups.el/issues/32
(fset 'wg-mode-line-add-display (lambda () nil))
(fset 'wg-mode-line-remove-display (lambda () nil))
;; no morph, performance is my first priority, always
(setq wg-morph-on nil)
;; now start it
(workgroups-mode 1)
(defun wgext-save ()
(interactive)
(wg-update-workgroup (wg-arg))
(wg-save wg-file))
(defun wgext-load ()
(interactive)
(wg-load wg-file))
;; it's rarely used, not worth using evil-leader
(global-set-key (kbd "C-c w s") 'wgext-save)
(global-set-key (kbd "C-c w l") 'wgext-load)
;; workflow
;; <prefix> c => new; <prefix> C-s => save; <prefix> C-l =>load;
(provide 'init-workgroups)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/cowboy13/emacs.git
git@gitee.com:cowboy13/emacs.git
cowboy13
emacs
emacs
master

搜索帮助