Function: landmark-mode

landmark-mode is an interactive and byte-compiled function defined in landmark.el.gz.

Signature

(landmark-mode)

Documentation

Major mode for playing Lm against Emacs.

You and Emacs play in turn by marking a free square. You mark it with X and Emacs marks it with O. The winner is the first to get five contiguous marks horizontally, vertically or in diagonal.

You play by moving the cursor over the square you choose and hitting M-x landmark-human-plays (landmark-human-plays).

Other useful commands:
                landmark-beginning-of-line
                landmark-end-of-line
                landmark-human-takes-back
<down-mouse-1> landmark-start-robot
<down-mouse-2> landmark-click
<drag-mouse-1> landmark-click
<drag-mouse-2> landmark-mouse-play
<kp-1> landmark-move-sw
<kp-2> landmark-move-down
<kp-3> landmark-move-se
<kp-4> backward-char
<kp-6> forward-char
<kp-7> landmark-move-nw
<kp-8> landmark-move-up
<kp-9> landmark-move-ne
<mouse-1> landmark-click
<mouse-2> landmark-mouse-play
C-n landmark-move-down
C-n landmark-move-down
C-p landmark-move-up
C-p landmark-move-up
C-x u landmark-human-takes-back
SPC landmark-start-robot
X landmark-human-plays
b landmark-move-sw
h backward-char
j landmark-move-down
k landmark-move-up
l forward-char
n landmark-move-se
u landmark-move-ne
x landmark-human-plays
y landmark-move-nw
Entry to this mode calls the value of landmark-mode-hook if that value is non-nil. One interesting value is turn-on-font-lock.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/obsolete/landmark.el.gz
;; This one is for when they set view-read-only to t: Landmark cannot
;; allow View Mode to be activated in its buffer.
(define-derived-mode landmark-mode special-mode "Lm"
  "Major mode for playing Lm against Emacs.
You and Emacs play in turn by marking a free square.  You mark it with X
and Emacs marks it with O.  The winner is the first to get five contiguous
marks horizontally, vertically or in diagonal.

You play by moving the cursor over the square you choose and hitting \\[landmark-human-plays].

Other useful commands:
\\{landmark-mode-map}
Entry to this mode calls the value of `landmark-mode-hook' if that value
is non-nil.  One interesting value is `turn-on-font-lock'."
  (landmark-display-statistics)
  (setq-local font-lock-defaults '(landmark-font-lock-keywords t))
  (setq buffer-read-only t)
  (add-hook 'post-command-hook #'landmark--intangible nil t))