nixjdm / emacs.d Goto Github PK
View Code? Open in Web Editor NEWEmacs configs
Emacs configs
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"))
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
I don't know what's causing this, but when I open files, sometimes a [I
is prepended to them upon opening. This is very annoying -_-
Everytime I try to save and exit a file that was opened with emacs while working on Django with a live development server, it will say:
buffer [file] has a running process; kill it? (yes or no)
To fix this super annoying problem I found this resource:
https://www.gnu.org/software/emacs/manual/html_node/elisp/Query-Before-Exit.html
and added to ~/.emacs.d/init.el
this line:
(set-process-query-on-exit-flag (get-process "shell") nil)
If I have two separate files on two separate terminals, I can not edit one if the others buffer is open.
The code will write but its lagged out and does not reflect your keystrokes until after you close the buffer in the other terminal.
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.
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(
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',
_ _ _ ],
_ _ },
_ },
]
I've had this fail in various environments, and the had to do a manual clone of the resources. Not to mention how often I just forget to do it and wonder why things don't work.
$ emacs test
*ERROR*: Args out of range: [], 0
C-c C-t
only cycles through themes right now. I want the ability to return to defaults at the end (or beginning) of the list.
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.