[Emacs Lisp] Personal ~/.emacs.d/ configuration folder.
Disabling frame suspending
smart-documents.org
@@ -377,12 +377,22 @@
377
377
(global-set-key (kbd "C-q") 'sd-delete-frame-or-kill-emacs)
378
378
#+END_SRC
379
379
380
Removed:
*** Disable =C-z= if using a graphical interface
380
Added:
*** Remap =C-z= when using a graphical interface
381
381
382
Removed:
#+BEGIN_SRC emacs-lisp :tangle yes
383
Removed:
(global-unset-key (kbd "C-z"))
382
Added:
By default, =C-z= suspends the editor. This is extremely handy when
383
Added:
the editor is started with the =-nw= option (no window, i.e. launched
384
Added:
in a terminal), because it returns control to the terminal command
385
Added:
line without quitting Emacs---it simply places the Emacs process in
386
Added:
the background. The user may then use the Linux job management tools
387
Added:
to return inside the Emacs process.
384
388
385
Removed:
(global-set-key (kbd "C-z C-z") 'suspend-frame)
389
Added:
However, when using a graphical display, we have no need for
390
Added:
suspending the frame, so we remap =C-z= to the much more sensible
391
Added:
~undo~ behaviour.
392
Added:
393
Added:
#+BEGIN_SRC emacs-lisp :tangle yes
394
Added:
(when (display-graphic-p)
395
Added:
(global-set-key (kbd "C-z") 'undo))
386
396
#+END_SRC
387
397
388
398
** Text display