Skip to content

Latest commit

 

History

History
54 lines (37 loc) · 1.1 KB

File metadata and controls

54 lines (37 loc) · 1.1 KB

Research Tools Video 10 - emacs part 5 - modes

Introduction

Major modes

http://www.gnu.org/s/libtool/manual/emacs/Major-Modes.html#Major-Modes

  • Fundamental
  • Text Mode -> M-x text-mode
  • org-mode -> M-x org-mode
  • C/C++/Python
  • HTML/XML
  • etc

Minor mode

http://www.gnu.org/s/libtool/manual/emacs/Minor-Modes.html

  • Flyspell
  • auto-fill-mode
    • C-x f set fill column
    • M-o M-s - center
    • M-x fill-region
    • M-q <– fill paragraph
  • yasnippets - add the ability to paste in repeating chunks of code
  • overwrite mode

Help

  • C-h m - display mode summary

Specifying modes

Extension

mode definition

Like this: -*- mode: Lisp; -*- on the 1st or 2nd line

By the magic definition on the first line

#!/usr/bin/env python