This is an old revision of the document!

Emacs tricks

Insert indentation to selected regions

Ctrl-x TAB (Then select direction)

Change buffer font size

Ctrl-X Ctrl-+
Ctrl-X Ctrl--

Org mode

Change width of columns

| <10> |

Recalculate formulas

C-u C-c C-c

How to export to pdf (latex)

M-x org-latex-export-to-pdf

Avoid printing a column when exporting to latex (pdf)

#+LATEX_HEADER: \usepackage{array}
#+LATEX_HEADER: \newcolumntype{H}{>{\setbox0=\hbox\bgroup}c<{\egroup}@{}}
#+ATTR_LATEX: :environment longtable :align |l|Hl|l|l|l|l|l|

Landscape latex (pdf) printing

#+LATEX_CLASS: article
#+LATEX_CLASS_OPTIONS: [landscape]
#+LATEX_HEADER: \usepackage[a4paper]{anysize}

Latex fix length column

#+ATTR_LATEX: :environment longtable :align |l|p{10cm}|l|

Move a complete column to the left or right

M^<arrow-left>, M^<arrow-right>

Emacs themes

;; Please set your themes directory to 'custom-theme-load-path
(add-to-list 'custom-theme-load-path
             (file-name-as-directory "your cloned directory path"))

;; load your favorite theme
(load-theme 'aalto-dark t t)
(enable-theme 'aalto-dark)
  • linux_tricks/emacs.1582624233.txt.gz
  • Last modified: 2020/02/25 03:50
  • by admin