Emacs tricks

Markdown mode

  • Markdown preview:
Ctrl-c Ctrl-c p


M-x <enter> markdown-preview

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.txt
  • Last modified: 2020/03/16 20:05
  • by admin