Git Product home page Git Product logo

atom-emacs-tab's Introduction

Missing Emacs' tab key behaviour in Atom?

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

atom-emacs-tab's People

Contributors

dragly avatar glebtv avatar grischa avatar lee-dohm avatar simetenn avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

davidwu226

atom-emacs-tab's Issues

Uncaught TypeError: Cannot read property '101' of undefined

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.19.0 x64
Electron: 1.6.9
OS: Ubuntu 17.04
Thrown From: emacs-tab package 0.1.0

Stack Trace

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)

Commands

     -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)

Non-Core Packages

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 

Version 0.2.0

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.

Uncaught TypeError: Cannot read property '2' of undefined

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.19.0 x64
Electron: 1.6.9
OS: Unknown Windows version
Thrown From: emacs-tab package 0.1.0

Stack Trace

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)

Commands

     -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)

Non-Core Packages

atomic-emacs 0.12.0 
emacs-tab 0.1.0 

Tab without brackets after if/for in C++

In emacs, an indent is automatically inserted after an if/for statement, even if the statement doesn't have brackets (as in the case of an if statement with a single line in it).

This behaviour doesn't seem to be present in atom-emacs-tab. Would be nice if it were :)
screenshot 2018-11-03 12 16 08

Insert literal tab

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.