Here is the solution
Whatever you do and on whatever line, tab key always does one thing - indent.
forked from emacs-flow and atom-tab-always-indents
MIT license
This project forked from glebtv/atom-tab-always-indents
Makes tab key in Atom behave like Emacs
License: MIT License
[Enter steps to reproduce:]
Atom: 1.19.0 x64
Electron: 1.6.9
OS: Ubuntu 17.04
Thrown From: emacs-tab package 0.1.0
Uncaught TypeError: Cannot read property '101' of undefined
At /home/simonspa/cloud/configs/.atom/packages/emacs-tab/lib/emacs-flow.coffee:17
TypeError: Cannot read property '101' of undefined
at EmacsFlow.module.exports.EmacsFlow.autoIndent (/packages/emacs-tab/lib/emacs-flow.coffee:17:40)
at /packages/emacs-tab/lib/index.coffee:14:19)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/opt/atom/resources/app/src/command-registry.js:265:35)
at /opt/atom/resources/app/src/command-registry.js:3:65
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/opt/atom/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:610:22)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/opt/atom/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:401:28)
at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/opt/atom/resources/app/src/window-event-handler.js:100:42)
at HTMLDocument.<anonymous> (/opt/atom/resources/app/src/window-event-handler.js:3:65)
-0:13.7.0 core:delete (input.hidden-input)
-0:13.5.0 emacs-flow:auto-indent (input.hidden-input)
-0:06.7.0 core:move-down (input.hidden-input)
-0:06.2.0 editor:move-to-first-character-of-line (input.hidden-input)
-0:05.9.0 core:delete (input.hidden-input)
-0:05.7.0 core:move-down (input.hidden-input)
-0:05.5.0 core:delete (input.hidden-input)
-0:05.2.0 core:move-down (input.hidden-input)
-0:05.0 core:delete (input.hidden-input)
-0:04.8.0 core:move-down (input.hidden-input)
-0:04.6.0 core:delete (input.hidden-input)
-0:04.3.0 core:move-down (input.hidden-input)
-0:04.1.0 core:delete (input.hidden-input)
-0:03.9.0 core:move-down (input.hidden-input)
-0:03.7.0 core:delete (input.hidden-input)
-0:03.4.0 emacs-flow:auto-indent (input.hidden-input)
advanced-open-file 0.16.6
atomic-emacs 0.12.0
emacs-tab 0.1.0
gitlab-integration 0.4.0
gtk-dark-theme 0.1.4
language-cmake 0.3.0
language-latex 1.1.0
language-markdown 0.25.1
markdown-preview-opener 0.1.1
markdown-preview-plus 2.4.10
project-plus 1.0.0
tablr 1.8.3
theme-switcher 1.1.0
wordcount 2.10.4
Atom isn't currently allowing me to update to 0.2.0 for some reason. Any ideas? It says 0.1.0 is the most recent version.
[Enter steps to reproduce:]
Atom: 1.19.0 x64
Electron: 1.6.9
OS: Unknown Windows version
Thrown From: emacs-tab package 0.1.0
Uncaught TypeError: Cannot read property '2' of undefined
At C:\Users\kille\.atom\packages\emacs-tab\lib\emacs-flow.coffee:17
TypeError: Cannot read property '2' of undefined
at EmacsFlow.module.exports.EmacsFlow.autoIndent (/packages/emacs-tab/lib/emacs-flow.coffee:17:40)
at /packages/emacs-tab/lib/index.coffee:14:19)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (~/AppData/Local/atom/app-1.19.0/resources/app/src/command-registry.js:265:35)
at ~/AppData/Local/atom/app-1.19.0/resources/app/src/command-registry.js:3:65
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (~/AppData/Local/atom/app-1.19.0/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:610:22)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (~/AppData/Local/atom/app-1.19.0/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:401:28)
at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (~/AppData/Local/atom/app-1.19.0/resources/app/src/window-event-handler.js:100:42)
at HTMLDocument.<anonymous> (~/AppData/Local/atom/app-1.19.0/resources/app/src/window-event-handler.js:3:65)
-2:40.8.0 emacs-flow:auto-indent (input.hidden-input)
-0:23.9.0 settings-view:open (input.hidden-input)
-0:08.1.0 emacs-flow:auto-indent (input.hidden-input)
atomic-emacs 0.12.0
emacs-tab 0.1.0
In emacs, you can insert a literal tab character (even if it is contrary to the indentation style at that point) with C-q TAB. Is something like that possible with this package?
Thanks for putting this together, btw.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.