;;; 128秒沉寂后自动转入只读模式
(setq timer_read-only (run-with-idle-timer 128 t 'toggle-read-only 1))
Weekend
11 年前
万物并作,吾以观复。夫物芸芸,各复归其根。 The operation of anything is governed by some rule.
;;; 128秒沉寂后自动转入只读模式
(setq timer_read-only (run-with-idle-timer 128 t 'toggle-read-only 1))
(global-set-key (kbd "<f8>") (lambda() (interactive) (save-buffer) (call-process-shell-command "latex -interact=batchmode -output-format=pdf assignment_2") (message "having generated pdf successfully")))必须调用“interactive“函数。
Characters used to recognize/draw the borders of the table can be specified with the help of the following variables:
table-cell-horizontal-chars
Contains a string. All characters in string are valid horizontal delimiters for the table. The first character of the string is used for output.
table-cell-horizontal-char
Contains the character used as the vertical delimiter. “|” by default.
table-cell-intersection-char
Contains the character that appears at the intersection of rows and columns. “+” is the default.
The following settings give interesting results. They use utf-8 characters to draw continuous lines for the border of the table. Arguably, your font should support these character to display the desired effect.
(setq table-cell-horizontal-chars "\u2501")
(setq table-cell-vertical-char ?\u2503)
(setq table-cell-intersection-char ?\u254B)
(add-to-list 'load-path "~/.elisp")
(require 'foo)
$ update-alternatives --config editor
C-x r m
C-x r b
upcase-initials-region
C-s C-w
C-s C-w C-w ...
C-x r r register_name
C-x r i register_name
C-x r s register_name
C-x r i register_name
M-x delete-rectangle
C-x r SPC register_name
C-x r j register_name
C-x w h
C-x w r
C-M-\
C-M-q
C-x ^ # to make the current windows taller
C-x { # to make it wider
M-p # Fetch the next earlier old shell command.
M-n # Fetch the next later old shell command.
M-r regexp RET # Search backwards for old shell commands that match regexp.
M-s regexp RET # Search forwards for old shell commands that match regexp.
C-c C-x # Fetch the next subsequent command from the history.
C-x C-v RET
C-c C-k
C-c C-vMaybe, an XML parser is required:
$ aptitude install sp
C-h m
C-t # 2 characters
M-t # 2 words
C-x C-t # 2 lines
M-x local-set-key RET key RET command RET
M-x show-paren-mode
C-s M-y
C-x C-q
M-q
C-x f # set column width
M-x fill-region
M-x fill-region-as-paragraph
M-s # center a line
M-x auto-fill-mode # automatic mode
M-x set-fill-column # adjust column number for auto-fill-mode
M-g g
M-x column-number-mode
M-/