mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
Some tweaks
This commit is contained in:
15
behavior.el
15
behavior.el
@@ -86,3 +86,18 @@
|
||||
(setq next-screen-context-lines
|
||||
(max 1 (/ (1- (window-height (selected-window))) 2)))
|
||||
ad-do-it)
|
||||
|
||||
|
||||
;; Make Project Explorer open selected file in last used buffer
|
||||
(setq pe/display-content-buffer-function
|
||||
(lambda (buffer)
|
||||
(let* (( last-buffer
|
||||
(car (cl-remove 'project-explorer-mode
|
||||
(buffer-list)
|
||||
:key (apply-partially 'buffer-local-value
|
||||
'major-mode))))
|
||||
( window (get-buffer-window last-buffer)))
|
||||
(if window
|
||||
(set-window-buffer window buffer)
|
||||
(pe/show-buffer buffer)))
|
||||
))
|
||||
|
||||
@@ -55,6 +55,7 @@
|
||||
'(feature-indent-initial-offset 0)
|
||||
'(fill-column 78)
|
||||
'(flycheck-completion-system (quote ido))
|
||||
'(flycheck-idle-change-delay 1.0)
|
||||
'(flycheck-indication-mode (quote right-fringe))
|
||||
'(global-auto-revert-mode t)
|
||||
'(global-undo-tree-mode t)
|
||||
|
||||
@@ -48,7 +48,6 @@
|
||||
|
||||
;; align-regexp
|
||||
(global-set-key (kbd "C-c C-a") 'align-regexp)
|
||||
;; (global-set-key (kbd "C-c \\") 'align-regexp) ;; keep till I get used to C-c C-a
|
||||
|
||||
;; Toggle auto-fill-mode.
|
||||
(global-set-key (kbd "C-c q") 'auto-fill-mode)
|
||||
|
||||
Reference in New Issue
Block a user