Skip to content

Commit

Permalink
core: derive spacemacs-mode from fundamental-mode
Browse files Browse the repository at this point in the history
special-mode does nothing ... special but bring unwanted mapped keys.
  • Loading branch information
syl20bnr committed Jan 9, 2016
1 parent 36bc869 commit 6fc995e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/core-spacemacs-buffer.el
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,16 @@ version the release note it displayed")
(with-eval-after-load 'evil
(evil-make-overriding-map spacemacs-buffer-mode-map 'motion))

(define-derived-mode spacemacs-buffer-mode special-mode "Spacemacs buffer"
(define-derived-mode spacemacs-buffer-mode fundamental-mode "Spacemacs buffer"
"Spacemacs major mode for startup screen.
\\<spacemacs-buffer-mode-map>
"
:group 'spacemacs
:syntax-table nil
:abbrev-table nil
(setq truncate-lines t)
(setq buffer-read-only t
truncate-lines t)
(page-break-lines-mode)
;; needed to make tab work correctly in terminal
(evil-define-key 'motion spacemacs-buffer-mode-map (kbd "C-i") 'widget-forward)
Expand Down

0 comments on commit 6fc995e

Please sign in to comment.