SlideShare a Scribd company logo
On text editing and emacs: 9 habits of highly eective
text editing
Based on 7 habits of highly eective text editing by Bram Moolenaar

Daniel M German

2013-11-07. Osaka

Daniel M German

On text editing and emacs: 9 habits of highly eective text editing Osaka
2013-11-07.

1 / 42
Outline

Daniel M German

On text editing and emacs: 9 habits of highly eective text editing Osaka
2013-11-07.

2 / 42
Introduction

Daniel M German

On text editing and emacs: 9 habits of highly eective text editing Osaka
2013-11-07.

3 / 42
What are these?

Daniel M German

On text editing and emacs: 9 habits of highly eective text editing Osaka
2013-11-07.

4 / 42
Nakagiri

Daniel M German

On text editing and emacs: 9 habits of highly eective text editing Osaka
2013-11-07.

5 / 42
On Knifes

Daniel M German

On text editing and emacs: 9 habits of highly eective text editing Osaka
2013-11-07.

6 / 42
Learning to Cut Mackerel

Saba no Sanmai Oroshi (Mackerel 3 Piece Filleting)

Daniel M German

On text editing and emacs: 9 habits of highly eective text editing Osaka
2013-11-07.

7 / 42
Keeping your tools ready

Daniel M German

On text editing and emacs: 9 habits of highly eective text editing Osaka
2013-11-07.

8 / 42
Questions

What is your most important tool?
Do you know how to use it?

Daniel M German

On text editing and emacs: 9 habits of highly eective text editing Osaka
2013-11-07.

9 / 42
The Computer is your Toolbox: messy

Daniel M German

On text editing and emacs: 9 habits of highly eective text editing Osaka
2013-11-07.

10 / 42
The Computer is your Toolbox: tidy

Daniel M German

On text editing and emacs: 9 habits of highly eective text editing Osaka
2013-11-07.

11 / 42
And your workshop: messy

Daniel M German

On text editing and emacs: 9 habits of highly eective text editing Osaka
2013-11-07.

12 / 42
And your workshop: tidy

Daniel M German

On text editing and emacs: 9 habits of highly eective text editing Osaka
2013-11-07.

13 / 42
Text editing

We live in a text-based world.
Our productivity depends on how good we are at editing text.

Daniel M German

On text editing and emacs: 9 habits of highly eective text editing Osaka
2013-11-07.

14 / 42
9 habits of highly eective text editing

Based on 7 habits of highly eective text editing by Bram Moolenaar

http://www.moolenaar.net/habits.html

Daniel M German

On text editing and emacs: 9 habits of highly eective text editing Osaka
2013-11-07.

15 / 42
Part 0: The basics

Daniel M German

On text editing and emacs: 9 habits of highly eective text editing Osaka
2013-11-07.

16 / 42
Habit 0: learn to type

Daniel M German

On text editing and emacs: 9 habits of highly eective text editing Osaka
2013-11-07.

17 / 42
Habit 1: Avoid the mouse

Daniel M German

On text editing and emacs: 9 habits of highly eective text editing Osaka
2013-11-07.

18 / 42
Part 1: One le

Daniel M German

On text editing and emacs: 9 habits of highly eective text editing Osaka
2013-11-07.

19 / 42
Habit 2: Move around quickly

How to nd the le
Inside the le

Incremental search
Bookmarks

Daniel M German

On text editing and emacs: 9 habits of highly eective text editing Osaka
2013-11-07.

20 / 42
Habit 3: Don't type it twice

Use macros
Learn to be eective with Cut-and-paste

Daniel M German

On text editing and emacs: 9 habits of highly eective text editing Osaka
2013-11-07.

21 / 42
Habit 4: Get help typing it

Automatic expansion
Spelling correction

Daniel M German

On text editing and emacs: 9 habits of highly eective text editing Osaka
2013-11-07.

22 / 42
Habit 5: Text is structured

Most languages we edit are structured

Special modes for them

Learn to use regular expressions

search and replace

Daniel M German

On text editing and emacs: 9 habits of highly eective text editing Osaka
2013-11-07.

23 / 42
Part 2: Multiple les: the project

Daniel M German

On text editing and emacs: 9 habits of highly eective text editing Osaka
2013-11-07.

24 / 42
Habit 6: A le seldom comes alone

Moving quickly to related les
Learn support for

e.g. ctags

Daniel M German

Projects

On text editing and emacs: 9 habits of highly eective text editing Osaka
2013-11-07.

25 / 42
Habit 7: Let's work together

Many tools do text editing (eg. email)

can you edit the text in your editor?
worst case scenario: cut-and-paste

Daniel M German

On text editing and emacs: 9 habits of highly eective text editing Osaka
2013-11-07.

26 / 42
Part 3: What now?

Daniel M German

On text editing and emacs: 9 habits of highly eective text editing Osaka
2013-11-07.

27 / 42
Habit 8: Sharpen the saw

Keep learning

observe others
watch video-tutorials
read!

Daniel M German

On text editing and emacs: 9 habits of highly eective text editing Osaka
2013-11-07.

28 / 42
Habit 9: Sharpen the saw. . .

Observe yourself: Reect on what you do

1
2
3

Detect ineciencies
Find a quicker way
Make it a habit

Daniel M German

On text editing and emacs: 9 habits of highly eective text editing Osaka
2013-11-07.

29 / 42
Habit 9: Sharpen the saw. . .

Learn to extend your editor

(defun dmg-calculate ()
(interactive)
(let ((value (eval (preceding-sexp))))
(kill-sexp -1)
(insert (format %s value))))

Daniel M German

On text editing and emacs: 9 habits of highly eective text editing Osaka
2013-11-07.

30 / 42
Extending your editor is a superpower

Programming is a superpower Scroll to 8:50

Daniel M German

On text editing and emacs: 9 habits of highly eective text editing Osaka
2013-11-07.

31 / 42
How to choose a text editor

Can it do what you need?
Is it powerful?
Is it general purpose?
Is it extensible?
Does it have a large user-base?

Daniel M German

On text editing and emacs: 9 habits of highly eective text editing Osaka
2013-11-07.

32 / 42
On Emacs

It is my most important tool
I can do the majority of my work in it

Daniel M German

On text editing and emacs: 9 habits of highly eective text editing Osaka
2013-11-07.

33 / 42
Demo: the daily activities

Daniel M German

On text editing and emacs: 9 habits of highly eective text editing Osaka
2013-11-07.

34 / 42
Demo: latex

Daniel M German

On text editing and emacs: 9 habits of highly eective text editing Osaka
2013-11-07.

35 / 42
Demo: org-mode

Daniel M German

On text editing and emacs: 9 habits of highly eective text editing Osaka
2013-11-07.

36 / 42
Demo: babel

Daniel M German

On text editing and emacs: 9 habits of highly eective text editing Osaka
2013-11-07.

37 / 42
Learning Emacs: the learning cli

Daniel M German

On text editing and emacs: 9 habits of highly eective text editing Osaka
2013-11-07.

38 / 42
Where to start

http://www.emacswiki.org/
http://emacsrocks.com/

Daniel M German

On text editing and emacs: 9 habits of highly eective text editing Osaka
2013-11-07.

39 / 42
Epilogue

Daniel M German

On text editing and emacs: 9 habits of highly eective text editing Osaka
2013-11-07.

40 / 42
What is this?

Daniel M German

On text editing and emacs: 9 habits of highly eective text editing Osaka
2013-11-07.

41 / 42
In Japan. . .

In Japan we take care of our instruments, our bats and our gloves. We take care
of them well because these things are very important.

Daniel M German

On text editing and emacs: 9 habits of highly eective text editing Osaka
2013-11-07.

42 / 42

More Related Content

PPTX
Grade six Sept. 13 & 14
PPTX
Introducing the Global English Style Guide
PDF
How to build a psychological immune system
PDF
Emacs Cheat Sheet
ODP
PDF
Pymacs 初體驗
PDF
20130404 emacs conf 2013 sketchnotes
PDF
Quantified Awesome: Tracking Clothes, Groceries, and Other Small Things
Grade six Sept. 13 & 14
Introducing the Global English Style Guide
How to build a psychological immune system
Emacs Cheat Sheet
Pymacs 初體驗
20130404 emacs conf 2013 sketchnotes
Quantified Awesome: Tracking Clothes, Groceries, and Other Small Things

More from dmgerman (10)

PDF
Fairness and Code Reviews
PDF
Introduction to License Compliance and My research (D. German)
PDF
Cregit Recovering token level authorship from Git
PDF
The Promises and Perils of Mining Github: MSR'2014
PDF
The adoption of FOSS workfows in commercial software development: the case of...
PDF
Source Code Licensing as an Essential Aspect of Modern Software Development
PDF
How Linux uses Git
PDF
Components license
PDF
he Future of Continuous Integration in GNOME
PDF
Towards a Census of Free and Open Source Licenses
Fairness and Code Reviews
Introduction to License Compliance and My research (D. German)
Cregit Recovering token level authorship from Git
The Promises and Perils of Mining Github: MSR'2014
The adoption of FOSS workfows in commercial software development: the case of...
Source Code Licensing as an Essential Aspect of Modern Software Development
How Linux uses Git
Components license
he Future of Continuous Integration in GNOME
Towards a Census of Free and Open Source Licenses
Ad

Recently uploaded (20)

PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Encapsulation theory and applications.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
Big Data Technologies - Introduction.pptx
PDF
Empathic Computing: Creating Shared Understanding
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Electronic commerce courselecture one. Pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Machine learning based COVID-19 study performance prediction
Building Integrated photovoltaic BIPV_UPV.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
Encapsulation theory and applications.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Advanced methodologies resolving dimensionality complications for autism neur...
20250228 LYD VKU AI Blended-Learning.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Big Data Technologies - Introduction.pptx
Empathic Computing: Creating Shared Understanding
NewMind AI Weekly Chronicles - August'25 Week I
Electronic commerce courselecture one. Pdf
The AUB Centre for AI in Media Proposal.docx
MYSQL Presentation for SQL database connectivity
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Machine learning based COVID-19 study performance prediction
Ad

On editing text and Emacs: 9 habits of highly effective text editing

  • 1. On text editing and emacs: 9 habits of highly eective text editing Based on 7 habits of highly eective text editing by Bram Moolenaar Daniel M German 2013-11-07. Osaka Daniel M German On text editing and emacs: 9 habits of highly eective text editing Osaka 2013-11-07. 1 / 42
  • 2. Outline Daniel M German On text editing and emacs: 9 habits of highly eective text editing Osaka 2013-11-07. 2 / 42
  • 3. Introduction Daniel M German On text editing and emacs: 9 habits of highly eective text editing Osaka 2013-11-07. 3 / 42
  • 4. What are these? Daniel M German On text editing and emacs: 9 habits of highly eective text editing Osaka 2013-11-07. 4 / 42
  • 5. Nakagiri Daniel M German On text editing and emacs: 9 habits of highly eective text editing Osaka 2013-11-07. 5 / 42
  • 6. On Knifes Daniel M German On text editing and emacs: 9 habits of highly eective text editing Osaka 2013-11-07. 6 / 42
  • 7. Learning to Cut Mackerel Saba no Sanmai Oroshi (Mackerel 3 Piece Filleting) Daniel M German On text editing and emacs: 9 habits of highly eective text editing Osaka 2013-11-07. 7 / 42
  • 8. Keeping your tools ready Daniel M German On text editing and emacs: 9 habits of highly eective text editing Osaka 2013-11-07. 8 / 42
  • 9. Questions What is your most important tool? Do you know how to use it? Daniel M German On text editing and emacs: 9 habits of highly eective text editing Osaka 2013-11-07. 9 / 42
  • 10. The Computer is your Toolbox: messy Daniel M German On text editing and emacs: 9 habits of highly eective text editing Osaka 2013-11-07. 10 / 42
  • 11. The Computer is your Toolbox: tidy Daniel M German On text editing and emacs: 9 habits of highly eective text editing Osaka 2013-11-07. 11 / 42
  • 12. And your workshop: messy Daniel M German On text editing and emacs: 9 habits of highly eective text editing Osaka 2013-11-07. 12 / 42
  • 13. And your workshop: tidy Daniel M German On text editing and emacs: 9 habits of highly eective text editing Osaka 2013-11-07. 13 / 42
  • 14. Text editing We live in a text-based world. Our productivity depends on how good we are at editing text. Daniel M German On text editing and emacs: 9 habits of highly eective text editing Osaka 2013-11-07. 14 / 42
  • 15. 9 habits of highly eective text editing Based on 7 habits of highly eective text editing by Bram Moolenaar http://www.moolenaar.net/habits.html Daniel M German On text editing and emacs: 9 habits of highly eective text editing Osaka 2013-11-07. 15 / 42
  • 16. Part 0: The basics Daniel M German On text editing and emacs: 9 habits of highly eective text editing Osaka 2013-11-07. 16 / 42
  • 17. Habit 0: learn to type Daniel M German On text editing and emacs: 9 habits of highly eective text editing Osaka 2013-11-07. 17 / 42
  • 18. Habit 1: Avoid the mouse Daniel M German On text editing and emacs: 9 habits of highly eective text editing Osaka 2013-11-07. 18 / 42
  • 19. Part 1: One le Daniel M German On text editing and emacs: 9 habits of highly eective text editing Osaka 2013-11-07. 19 / 42
  • 20. Habit 2: Move around quickly How to nd the le Inside the le Incremental search Bookmarks Daniel M German On text editing and emacs: 9 habits of highly eective text editing Osaka 2013-11-07. 20 / 42
  • 21. Habit 3: Don't type it twice Use macros Learn to be eective with Cut-and-paste Daniel M German On text editing and emacs: 9 habits of highly eective text editing Osaka 2013-11-07. 21 / 42
  • 22. Habit 4: Get help typing it Automatic expansion Spelling correction Daniel M German On text editing and emacs: 9 habits of highly eective text editing Osaka 2013-11-07. 22 / 42
  • 23. Habit 5: Text is structured Most languages we edit are structured Special modes for them Learn to use regular expressions search and replace Daniel M German On text editing and emacs: 9 habits of highly eective text editing Osaka 2013-11-07. 23 / 42
  • 24. Part 2: Multiple les: the project Daniel M German On text editing and emacs: 9 habits of highly eective text editing Osaka 2013-11-07. 24 / 42
  • 25. Habit 6: A le seldom comes alone Moving quickly to related les Learn support for e.g. ctags Daniel M German Projects On text editing and emacs: 9 habits of highly eective text editing Osaka 2013-11-07. 25 / 42
  • 26. Habit 7: Let's work together Many tools do text editing (eg. email) can you edit the text in your editor? worst case scenario: cut-and-paste Daniel M German On text editing and emacs: 9 habits of highly eective text editing Osaka 2013-11-07. 26 / 42
  • 27. Part 3: What now? Daniel M German On text editing and emacs: 9 habits of highly eective text editing Osaka 2013-11-07. 27 / 42
  • 28. Habit 8: Sharpen the saw Keep learning observe others watch video-tutorials read! Daniel M German On text editing and emacs: 9 habits of highly eective text editing Osaka 2013-11-07. 28 / 42
  • 29. Habit 9: Sharpen the saw. . . Observe yourself: Reect on what you do 1 2 3 Detect ineciencies Find a quicker way Make it a habit Daniel M German On text editing and emacs: 9 habits of highly eective text editing Osaka 2013-11-07. 29 / 42
  • 30. Habit 9: Sharpen the saw. . . Learn to extend your editor (defun dmg-calculate () (interactive) (let ((value (eval (preceding-sexp)))) (kill-sexp -1) (insert (format %s value)))) Daniel M German On text editing and emacs: 9 habits of highly eective text editing Osaka 2013-11-07. 30 / 42
  • 31. Extending your editor is a superpower Programming is a superpower Scroll to 8:50 Daniel M German On text editing and emacs: 9 habits of highly eective text editing Osaka 2013-11-07. 31 / 42
  • 32. How to choose a text editor Can it do what you need? Is it powerful? Is it general purpose? Is it extensible? Does it have a large user-base? Daniel M German On text editing and emacs: 9 habits of highly eective text editing Osaka 2013-11-07. 32 / 42
  • 33. On Emacs It is my most important tool I can do the majority of my work in it Daniel M German On text editing and emacs: 9 habits of highly eective text editing Osaka 2013-11-07. 33 / 42
  • 34. Demo: the daily activities Daniel M German On text editing and emacs: 9 habits of highly eective text editing Osaka 2013-11-07. 34 / 42
  • 35. Demo: latex Daniel M German On text editing and emacs: 9 habits of highly eective text editing Osaka 2013-11-07. 35 / 42
  • 36. Demo: org-mode Daniel M German On text editing and emacs: 9 habits of highly eective text editing Osaka 2013-11-07. 36 / 42
  • 37. Demo: babel Daniel M German On text editing and emacs: 9 habits of highly eective text editing Osaka 2013-11-07. 37 / 42
  • 38. Learning Emacs: the learning cli Daniel M German On text editing and emacs: 9 habits of highly eective text editing Osaka 2013-11-07. 38 / 42
  • 39. Where to start http://www.emacswiki.org/ http://emacsrocks.com/ Daniel M German On text editing and emacs: 9 habits of highly eective text editing Osaka 2013-11-07. 39 / 42
  • 40. Epilogue Daniel M German On text editing and emacs: 9 habits of highly eective text editing Osaka 2013-11-07. 40 / 42
  • 41. What is this? Daniel M German On text editing and emacs: 9 habits of highly eective text editing Osaka 2013-11-07. 41 / 42
  • 42. In Japan. . . In Japan we take care of our instruments, our bats and our gloves. We take care of them well because these things are very important. Daniel M German On text editing and emacs: 9 habits of highly eective text editing Osaka 2013-11-07. 42 / 42