Skip to content

Commit

Permalink
Merge pull request rougier#71 from gh-name/master
Browse files Browse the repository at this point in the history
Add detections for Emacs built without X11.
  • Loading branch information
rougier authored May 17, 2021
2 parents 6c12ce6 + 7fcde62 commit afb6b15
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions nano-defaults.el
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
;; No message in scratch buffer
(setq initial-scratch-message nil)

;; Initial buffer
;; Initial buffer
(setq initial-buffer-choice nil)

;; No frame title
Expand All @@ -46,7 +46,7 @@

;; User mail address
(setq user-mail-address "Nicolas.Rougier@inria.fr")

;; No empty line indicators
(setq indicate-empty-lines nil)

Expand Down Expand Up @@ -88,10 +88,10 @@
(global-set-key (kbd "<mouse-5>") 'scroll-up-line))

;; No scroll bars
(scroll-bar-mode 0)
(if (fboundp 'scroll-bar-mode) (scroll-bar-mode nil))

;; No toolbar
(tool-bar-mode 0)
(if (fboundp 'tool-bar-mode) (tool-bar-mode nil))

;; No menu bar
(if (display-graphic-p)
Expand Down
2 changes: 1 addition & 1 deletion nano-layout.el
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
inhibit-startup-message t
inhibit-startup-echo-area-message t
initial-scratch-message nil)
(tool-bar-mode 0)
(if (fboundp 'tool-bar-mode) (tool-bar-mode nil))
(tooltip-mode 0)
(menu-bar-mode 0)
;; (global-hl-line-mode 1)
Expand Down

0 comments on commit afb6b15

Please sign in to comment.