Coder Social home page Coder Social logo

emacs.d's People

Contributors

nixjdm avatar smitty42 avatar

Watchers

 avatar  avatar  avatar

emacs.d's Issues

mmm-mode package dependency issue

When opening any file the following message pops up from buffer:

Warning (emacs): Unable to activate package `salt-mode'.                        
Required package `mmm-mode-0.5.4' is unavailable                                
Warning (emacs): Unable to activate package `mmm-jinja2'.                       
Required package `mmm-mode-0.5.4' is unavailable                                
Warning (emacs): Unable to activate package `salt-mode'.                        
|Required package `mmm-mode-0.5.4' is unavailable                                
Warning (emacs): Unable to activate package `mmm-jinja2'.                       
Required package `mmm-mode-0.5.4' is unavailable

I ran the following terminal search grep -R --exclude-dir="archives/" "mmm-mode" .emacs.d/
and from this it shows mmm-mode-0.5.6 is installed but some salt $ jinja2 packages seem to be saying mmm-mode-0.5.4 is a required package as a hard dependency.

Bottom chunk of grep search output:

.emacs.d/elpa/salt-mode-20180118.1754/salt-mode-pkg.el:(define-package "salt-mode" "20180118.1754" "Major mode for Salt States" '((emacs "24.4") (yaml-mode "0.0.12") (mmm-mode "0.5.4") (mmm-jinja2 "0.1")) :commit "e46c28ef77663391519646c79641c9d177f70d35" :keywords '("languages") :url "https://github.com/glynnforrest/salt-mode")
.emacs.d/elpa/salt-mode-20180118.1754/salt-mode.el:;; Package-Requires: ((emacs "24.4") (yaml-mode "0.0.12") (mmm-mode "0.5.4") (mmm-jinja2 "0.1"))
.emacs.d/elpa/salt-mode-20180118.1754/salt-mode.el:;; Syntax highlighting: Fontification supports YAML & Jinja using mmm-mode
.emacs.d/elpa/salt-mode-20180118.1754/salt-mode.el:;; Tag complete: Using mmm-mode you can generate insert templates:
.emacs.d/elpa/mmm-jinja2-20170313.720/mmm-jinja2-pkg.el:(define-package "mmm-jinja2" "20170313.720" "MMM submode class for Jinja2 Templates" '((mmm-mode "0.5.4")) :commit "c8cb763174fa2fb61b9a0e5e0ff8cb0210f8492f" :url "https://github.com/glynnforrest/mmm-jinja2")
.emacs.d/elpa/mmm-jinja2-20170313.720/mmm-jinja2.el:;; Package-Requires: ((mmm-mode "0.5.4"))

Figure out which version of emacs is required and check for it.

In some envs I have an error that needs handled, one way or the other.

Warning (emacs): Unable to activate package `web-mode-edit-element'.
Required package `emacs-24.4' is unavailable
Warning (emacs): Unable to activate package `salt-mode'.
Required package `emacs-24.4' is unavailable

Emacsclient needs killed on git branch changes

Assuming emacsclient:

If I had open a file in a git repo, then closed all emacs windows, then change branches, the next time I try to open a file, it won't work. I have to Ctrl+C the attempt, killall emacs and then it will come up again on the next attempt.

C&P from desktop to emacs terminal only partially successful.

If I have this code in a browser:

import os

from flask import Flask

def create_app(test_config=None):
    # create and configure the app
    app = Flask(__name__, instance_relative_config=True)
    app.config.from_mapping(
        SECRET_KEY='dev',
        DATABASE=os.path.join(app.instance_path, 'flaskr.sqlite'),
    )

    if test_config is None:
        # load the instance config, if it exists, when not testing
        app.config.from_pyfile('config.py', silent=True)
    else:
        # load the test config if passed in
        app.config.from_mapping(test_config)

    # ensure the instance folder exists
    try:
        os.makedirs(app.instance_path)
    except OSError:
        pass

    # a simple page that says hello
    @app.route('/hello')
    def hello():
        return 'Hello, World!'

    return app

I highlight it and copy, when I try to paste into a terminal file opened with emacs it'll only partially print:

import os

from flask import Flask


def create_app(test_config=None):
    # create and configure the app
    app = Flask(__name__, instance_relative_config=True)
    app.config.from_mapping(

Space highlighting in files

Working on Django2.1 project with python 3.6.6 and my .py files are having preappending white space highlighted.

example:
#Code with "_" is the highlighted white space.

TEMPLATES = [
_    {
_    _    'BACKEND': 'django.template.backends.django.DjangoTemplates',
_    _    'DIRS': [],
_    _    'APP_DIRS': True,
_    _    'OPTIONS': {
_    _    _    'context_processors': [
_    _    _    _    'django.template.context_processors.debug',
_    _    _    _    'django.template.context_processors.request',
_    _    _    _    'django.contrib.auth.context_processors.auth',
_    _    _    _    'django.contrib.messages.context_processors.messages',
_    _    _    ],
_    _    },
_    },
]

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.