Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
b082f792
Commit
b082f792
authored
Sep 26, 2008
by
Dan Nicolaescu
Browse files
(command-line): Turn on menu-bar-mode and
tool-bar-mode when running as a daemon.
parent
1ed6e04d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
11 deletions
+20
-11
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/startup.el
lisp/startup.el
+15
-11
No files found.
lisp/ChangeLog
View file @
b082f792
2008-09-26 Dan Nicolaescu <dann@ics.uci.edu>
* startup.el (command-line): Turn on menu-bar-mode and
tool-bar-mode when running as a daemon.
2008-09-26 Eli Zaretskii <eliz@gnu.org>
* makefile.w32-in ($(lisp)/progmodes/cc-mode.elc): Remove.
...
...
lisp/startup.el
View file @
b082f792
...
...
@@ -899,19 +899,23 @@ opening the first frame (e.g. open a connection to an X server).")
'("
off
" "
false
")))))
(setq no-blinking-cursor t))
;; If frame was created with a menu bar, set menu-bar-mode on.
(unless (or noninteractive
emacs-basic-display
(and (memq initial-window-system '(x w32))
(<= (frame-parameter nil 'menu-bar-lines) 0)))
;; If we run as a daemon, or frame was created with a menu bar, set
;; menu-bar-mode on.
(when (or (daemonp)
(not (or noninteractive
emacs-basic-display
(and (memq initial-window-system '(x w32))
(<= (frame-parameter nil 'menu-bar-lines) 0)))))
(menu-bar-mode 1))
;; If frame was created with a tool bar, switch tool-bar-mode on.
(unless (or noninteractive
emacs-basic-display
(not (display-graphic-p))
(<= (frame-parameter nil 'tool-bar-lines) 0))
(tool-bar-mode 1))
;; If we run as a daemon or frame was created with a tool bar,
;; switch tool-bar-mode on.
(when (or (daemonp)
(not (or noninteractive
emacs-basic-display
(not (display-graphic-p))
(<= (frame-parameter nil 'tool-bar-lines) 0))))
(tool-bar-mode 1))
;; Can't do this init in defcustom because the relevant variables
;; are not set.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment