emacs.rst
changeset 507 eeda6f41f8e5
parent 502 782eb1e22618
child 511 79d2735bd210
equal deleted inserted replaced
496:5fee9f3276aa 507:eeda6f41f8e5
    97 Select region, type C-u M-| sort -u RET.
    97 Select region, type C-u M-| sort -u RET.
    98 
    98 
    99 With transient-mark-mode and delete-selection-mode enabled: select region,
    99 With transient-mark-mode and delete-selection-mode enabled: select region,
   100 type M-| sort -u RET to replace selection with sorted and uniquified lines.
   100 type M-| sort -u RET to replace selection with sorted and uniquified lines.
   101 
   101 
   102 ** Determining running environment.
   102 ** Determining running environment/platform.
   103 
   103 
   104 Check such variable:
   104 Check variables:
   105 
   105 
   106   emacs-major-version
   106   emacs-major-version
   107   emacs-minor-version
   107   emacs-minor-version
   108   window-system - 'nil' if in terminal, 'w32' if native Windows build, 'x' if under X Window.
   108   window-system             - 'nil' if in terminal, 'w32' if native Windows build, 'x' if under X Window
   109   window-system-version
   109   window-system-version     - for windows only
   110   operating-system-release
   110   operating-system-release  - release of the operating system Emacs is running on
   111   system-configuration - like configuration triplet: cpu-manufacturer-os
   111   system-configuration      - like configuration triplet: cpu-manufacturer-os
   112   system-name
   112   system-name               - host name of the machine you are running on
   113   system-time-locale
   113   system-time-locale
   114   system-type
   114   system-type               - indicating the type of operating system you are using:
       
   115                               'gnu' (GNU Hurd), 'gnu/linux', 'gnu/kfreebsd' (FreeBSD),
       
   116                               'darwin' (GNU-Darwin, Mac OS X), 'ms-dos', 'windows-nt', 'cygwin'
   115   system-uses-terminfo
   117   system-uses-terminfo
   116   window-size-fixed
   118   window-size-fixed
   117 
   119 
   118 Run such checks:
   120 and check functions:
       
   121 
       
   122   (fboundp ...)             - return t if SYMBOL's function definition is not void
       
   123   (featurep ...)            - returns t if FEATURE is present in this Emacs
       
   124   (display-graphic-p)       - return non-nil if DISPLAY is a graphic display; graphical
       
   125                               displays are those which are capable of displaying several
       
   126                               frames and several different fonts at once
       
   127   (display-multi-font-p)    - same as 'display-graphic-p'
       
   128   (display-multi-frame-p)   - same as 'display-graphic-p'
       
   129   (display-color-p)         - return t if DISPLAY supports color
       
   130   (display-images-p)        - return non-nil if DISPLAY can display images
       
   131   (display-grayscale-p)     - return non-nil if frames on DISPLAY can display shades of gray
       
   132   (display-mouse-p)         - return non-nil if DISPLAY has a mouse available
       
   133   (display-popup-menus-p)   - return non-nil if popup menus are supported on DISPLAY
       
   134   (display-selections-p)    - return non-nil if DISPLAY supports selections
       
   135 
       
   136 Run those checks as below:
   119 
   137 
   120   (when window-system ...)
   138   (when window-system ...)
   121   (when (eq window-system 'x) ...)
   139   (when (eq window-system 'x) ...)
   122   (when (>= emacs-major-version 22) ...)
   140   (when (>= emacs-major-version 22) ...)
   123   (when (fboundp '...) ...)
   141   (when (fboundp '...) ...)
   213 
   231 
   214 * Emacs games.
   232 * Emacs games.
   215 
   233 
   216   hanoi hanoi-unix life pong tetris gomoku
   234   hanoi hanoi-unix life pong tetris gomoku
   217 
   235 
       
   236 * Long lines.
       
   237 
       
   238   (setq longlines-show-hard-newlines t)
       
   239   (setq longlines-wrap-follows-window-size t)
       
   240   (longlines-mode 1)